Convert bat to exe within batch file.

January 26, 2012 at 13:37:23
Specs: windows xp

I have a tool to convert to exe already but wondering if the is another to use a command line..


-batch file automatically checks for update
-downloads the new data (and the tool im asking for maybe)
-and to convert it
-then delete the temp file and the tool
-start the updated version.

*i can do this already with a batch file but dont want anyone to muck around with the code*

See More: Convert bat to exe within batch file.

Report •

January 26, 2012 at 16:23:17
You will have to give something to go on. What is the name of the tool? Is it Freeware/Shareware/Commercialware? A link to the website would be a big help!

Unless you think you can commercialize your script, posting your complete batch file here can only help. Even then, just leave out the proprietary stuff. Nobody here can "muck around" with the copy on your computer.

Report •

January 26, 2012 at 18:41:47
Oh LOl.... I dont mind sharing it... Just the people at work...LOL...its a Chat program.

here it is, well the chat program....
title The Chat App
mode con:cols=25 lines=4

title %username%"s Input
color 8f
mode con:cols=45 lines=3

@echo off
if "%1"=="/textbox" goto textbox
title %username%'s Input
color 8f

mode con:cols=45 lines=3
echo. > chat.dll
start %~s0 /textbox
if not exist j: net use j: \\pc-77215\chatlogsp
set path=j:\
echo ** %username% has joined the conversation >> %path%\chatlog.txt

echo ** CLS=clear Text and Exit=Exit App **
set /p chat=%username% say"s:

if /i "%chat%"=="cls" goto settings
if /i "%chat%"=="exit" goto settings
if /i "%lastchat%"=="%chat%" goto settings

echo %username%: %chat% >> %path%\chatlog.txt
set lastchat=%chat%
goto start

if /i "%chat%"=="CLS" (
echo ** Room has been cleared by %username% > %path%\chatlog.txt
if /i "%chat%"=="exit" (
if exist chat.dll del chat.dll
echo ** %username% has left the conversation >> %path%\chatlog.txt
goto exit

goto start

title Display Box
mode con:cols=45 lines=25
color f8
if not exist j: net use j: \\pc-77215\chatlogsp
pushd j:\
type chatlog.txt
ping localhost -n 5 >nul
if not exist chat.dll goto exit
goto startbox

net use j: /delete


so now I have my "updater"..

ive set the %vari% to todays date...

xcopy \\pc-77215\networked_folder\*.* /d:%vari% /y /i /q /e D:\PROFILES\username\test_folder\**file here**


so the tool im after is to try convert my bat file to exe so the people dont "muck around" with it, cause ill be adding like a swearing filter etc...

Report •

January 27, 2012 at 00:32:36
From the looks of this I would guess you are using one of Windows NT/2000/XP/Vista/7. Put it on an NTFS volume where everyone can see it, if not already. Then right click in File Manager > Properties > Security tab, and give Everyone "Read & Execute" permissions only. If any of the people you don't want mucking around are in other groups, then give those groups "Read & Execute" only too. They can't touch it after that without your password!

If you do have a tool to convert a bat file to exe I would definitely be interested in that.

Report •

Related Solutions

January 27, 2012 at 19:13:30
Can you email me a copy of you batch file

Im really interested in it and have been looking into making one also

I think it would help me learn the language further

Thank you


edited by moderator: Removed email address -Razor2.3

Report •

Ask Question