sixpack Posted September 26, 2004 Share Posted September 26, 2004 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 Link to comment Share on other sites More sharing options...
prathapml Posted September 26, 2004 Share Posted September 26, 2004 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 Link to comment Share on other sites More sharing options...
sixpack Posted September 26, 2004 Author Share Posted September 26, 2004 thanks prathapml worksbut how to insert a icon file? Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted September 26, 2004 Share Posted September 26, 2004 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... Link to comment Share on other sites More sharing options...
RyanVM Posted September 26, 2004 Share Posted September 26, 2004 thanks prathapml worksbut how to insert a icon file?Google Resource Hacker Link to comment Share on other sites More sharing options...
sixpack Posted September 26, 2004 Author Share Posted September 26, 2004 Google Resource Hackernope doesent worktryed it Link to comment Share on other sites More sharing options...
prathapml Posted September 26, 2004 Share Posted September 26, 2004 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! Link to comment Share on other sites More sharing options...
sixpack Posted September 26, 2004 Author Share Posted September 26, 2004 huh?Whatcha mean?there is nothing to edit: Link to comment Share on other sites More sharing options...
prathapml Posted September 26, 2004 Share Posted September 26, 2004 Well, then - I dunno! Ideas anyone? Link to comment Share on other sites More sharing options...
Innominandum Posted October 22, 2004 Share Posted October 22, 2004 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. Link to comment Share on other sites More sharing options...
radhus Posted October 22, 2004 Share Posted October 22, 2004 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... Link to comment Share on other sites More sharing options...
Innominandum Posted October 22, 2004 Share Posted October 22, 2004 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. Link to comment Share on other sites More sharing options...
sixpack Posted October 22, 2004 Author Share Posted October 22, 2004 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 Link to comment Share on other sites More sharing options...
Innominandum Posted October 22, 2004 Share Posted October 22, 2004 try it no luckwell i have a workaroundi did pack it up in a sfx rar file and give it a nice icon Clever Link to comment Share on other sites More sharing options...
sixpack Posted November 27, 2004 Author Share Posted November 27, 2004 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now