Jump to content

cmd to exe possible?


Recommended Posts

hi

i have a cmd and want it to be convert to a exe

the code below is for excuting for a exe

on 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 icon

the cmd is copyt during the install of windows xp to the desktop

is this poseble,can somone help me with this? :}

cmdow @ /HID
@echo off
ECHO.
for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%i
SET SOURCE=%SOURCE:~0,2%
%SOURCE%\install\soft.EXE

EXIT

thanks for reading this

Link to comment
Share on other sites


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

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

  • 4 weeks later...

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

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 luck

well i have a workaround

i did pack it up in a sfx rar file and give it a nice icon :)

Link to comment
Share on other sites

  • 1 month later...

i have now Quick Batch File Compiler

this one hase resources

but i dunno how to ad the icon resource, if i at one and save it it does not diplay the icon

btw the icon resoursrce is in the exe file but the name is 0

and i can not change it :(

Ideas anyone?

post-66-1101556017_thumb.jpg

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...