Inspired by a comment from one of our readers (Frogman) about a tool from the “good old” DOS days. He told us that he used to convert his batch-files into EXE-files using DOS commands. The good news is that this tool still exists inside your windows. Since then it has been updated with a Windows GUI (windows graphical user interface)
Doing a search on the net, you can find literally hundreds of freeware apps to do this conversion, but in this article I will only use the forgotten Windows Tool which is hidden in the System32 folder:
iEXPRESS 2.0
iExpress is actually a program for creating installation packages. But as it creates standalone Executable files (EXE-files) we can use it to execute almost any runtime script we want.
You might be wondering why you would want to convert a Batch-file into an EXE-file. The two files end up doing exactly the same thing. Well, for one thing, you can’t PIN a Batch-file to the Quick-launch, toolbar or Start-menu. Using the iExpress you can also create installation packages containing several batch-files executing each other.
There are a few limitations (of course), for instance; iExpress will not accept the COPY command, only XCopy. Sadly it doesn’t recognise vbs-files as executable scripts without running them from a batch-file.
Create your EXE-file
- Press the Start-button and type
iexpress![1_welcome 1 welcome iExpress: Convert BAT files into EXE files [How To]](http://i0.wp.com/mintywhite.com/wp-content/uploads/2010/12/1_welcome.jpg?resize=469%2C365)
Right Click iExpress and choose: Run as Administrator. - In the dialogue window, choose: “Create new Self Extraction Directive file“, click Next.
(Later on if you decide to change an existing project you of course choose OPEN) - The next screen will give a few options. For this project choose: “Extract Files and run an installation command“.
![3_purpose 3 purpose iExpress: Convert BAT files into EXE files [How To]](http://i2.wp.com/mintywhite.com/wp-content/uploads/2010/12/3_purpose.jpg?resize=469%2C365)
- You can skip through the next two screens as we are not prompting or displaying any license information. Then when asked give your project a name, do so (and choose wisely). Then Continue by clicking Next.
- At this point we are to add the batch-file(s), and any other files deemed necessary.
![8_AddFiles 8 AddFiles iExpress: Convert BAT files into EXE files [How To]](http://i1.wp.com/mintywhite.com/wp-content/uploads/2010/12/8_AddFiles.jpg?resize=469%2C365)
After you have added all files, click Next. - We need to tell which file(s) are the main one and which to run when running the EXE-file. In this case there is only one, so choose your batch-file in both pull-down menus.
![9_launch 9 launch iExpress: Convert BAT files into EXE files [How To]](http://i0.wp.com/mintywhite.com/wp-content/uploads/2010/12/9_launch.jpg?resize=469%2C365)
- After you have chosen your primary file, click Next. If we were to install several files we could display the installation dialogue window. But for this project simply choose “Hidden“. Then continue.
- As running a Batch-file doesn’t demand any feedback to the user, choose “No Message” before continuing
- Then there’s an important step:
![12_name 12 name iExpress: Convert BAT files into EXE files [How To]](http://i2.wp.com/mintywhite.com/wp-content/uploads/2010/12/12_name.jpg?resize=469%2C365)
Choose a filename and place for the EXE-file. Mine is calledSpeaking.exe.
You can type the location and filename directly into the text-field, or browse to enter the folder name, then typing in the desired filename (C:\My Location\Speaking.exe).
Also, check the “Hide Animation Option“, before clicking Next. - There should be no reason to reboot your computer after running the batch-file so choose: “No restart“. Click Next.
- Last step: If you would like to save these settings for later use, you may do so by checking the “Save Self Extraction Directive (SED) file“. Click Next and Next again to create your EXE-file.
![13_sed 13 sed iExpress: Convert BAT files into EXE files [How To]](http://i1.wp.com/mintywhite.com/wp-content/uploads/2010/12/13_sed.jpg?resize=469%2C365)
- Now a CMD-window will open briefly. When it’s done, your file has been created. Check the log for any errors or details. If no errors were displayed – your EXE-file should be ready to launch.
![14-done 14 done iExpress: Convert BAT files into EXE files [How To]](http://i0.wp.com/mintywhite.com/wp-content/uploads/2010/12/14-done.jpg?resize=469%2C365)
Good Luck!
About Thomas
Computer geek from the age of 7, which amounts to 30 years of computer experience. From the early days (when every computer company had their own OS) of DOS, Windows 1.0 through Seven...
Search Windows Guides