September 26, 200421 yr hii have a cmd and want it to be convert to a exe the code below is for excuting for a exeon a cd with out knowing the cd drive letter.and works 100%because the cmd icon is ugly i want a exe with a nice iconthe cmd is copyt during the install of windows xp to the desktopis this poseble,can somone help me with this? cmdow @ /HID@echo offECHO.for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%iSET SOURCE=%SOURCE:~0,2%%SOURCE%\install\soft.EXE EXITthanks for reading this
September 26, 200421 yr There's any number of tools which can do this! Searching for it on google will give hundreds of good results. Moreover, compiling a batch file into executable will speed up what it does too.Attached is one such compiler, test it first before deciding that it works properly.Bat2Exe.ZIP
September 26, 200421 yr Hmm, nice! Can be helpful for me too Maybe a dumb question, but is it possible to merge everything together? Like this:------------------------------batch.cmd------------------commands_and_stuff.txt-- >>>> Mini-program.exe------------------------------This is not possible with IExpress, as far as I know...
September 26, 200421 yr huh?Whatcha mean? Resource Hacker 3.4Get it, and open up the compiled EXE. Then edit the icon resource, and replace what is already there with another of equal number of bytes.Does work!
October 22, 200421 yr It won't work with resource hacker or any resource editing program,because the executable that bat2exe makes is a DOS program not just a console program. So no luck there.You can try Batch File Compiler (google it) but I haven't tried it so I can really say for sure.Any way , good luck and if you find anything post it here so we all learn the trick.
October 22, 200421 yr Did you get any error messages when you opened tha file?If not:Use some of the menus and choose insert or something, insert an icon and name it 1 i think. Try that...
October 22, 200421 yr I don't think that will work because the executable doesn't have any code to handle resources. Doing this you will probably damage the file.But then again, you won't know until you try.
October 22, 200421 yr Author I don't think that will work because the executable doesn't have any code to handle resources. Doing this you will probably damage the file.But then again, you won't know until you try.try it no luckwell i have a workaroundi did pack it up in a sfx rar file and give it a nice icon
October 22, 200421 yr try it no luckwell i have a workaroundi did pack it up in a sfx rar file and give it a nice icon Clever
November 27, 200421 yr Author i have now Quick Batch File Compilerthis one hase resourcesbut i dunno how to ad the icon resource, if i at one and save it it does not diplay the iconbtw the icon resoursrce is in the exe file but the name is 0and i can not change it Ideas anyone?
Create an account or sign in to comment