You are here

Make a EXE from a batch file

7 posts / 0 new
Last post
webmin
Offline
Last seen: 17 years 2 months ago
Joined: 2007-09-26 10:24
Make a EXE from a batch file

Ok most programs have been made portable, or at least have some work around to make it portable. But here is one way to make most programs portable.

Now I am not going to give you any programs (especially not my copy of WinRar which I will be using as demo for this topic), but I will tell how you can make your own copy of WinRar or any other program portable.

To start, you should install WinRar (or your own program) to a directory in your PortableApps folder (I'll call mine WinRar for this illustration). Installing to this directory should create another folder called WinRar

Navigate to E:\PortableApps\WinRar and make sure that the second WinRar folder is there. Then open up notepad type:
"cd WinRar
rar.exe"

Without the quotes of course, and then save the notepad file to the directory that you navigated to earlier as WinRar.bat making sure that you select all files as the format to save it in.

Then go to http://www.download.com/3000-2069_4-10715331.html to get a free standalone app called batch to exe converter. From here its pretty straight foward to make the batch into an exe that PAM will recognize. In the bat to exe you can select an icon for it.

Note: this will not work for apps that rely on windows services
Note: Your drive letter may be different than the one I used in my example. If you can't figure out how to open up your falsh drive, then you shouldn't be here.

Any questions just email me computerwhizes@gmail.com

[Moderator RM: Moved and renamed to avoid misleading people]

pkeffect
Offline
Last seen: 8 years 9 months ago
Joined: 2006-08-17 09:26
This isn't making portable

This isn't making portable applications. It is only creating an *.exe from an *.exe + *.bat file. Much more work goes into portable development.

Whether or not things are written to the registry, if any settigs are stored or written to directories outside the applications directory etc.

Nice tip to make an *.exe but thats about all your post is worth. Good try though.

Oh you dont have to make a *.bat file and combine it with an *.exe for PAM to recognize it. It recognizes all *.exe files to begin with.

"We exist in a multidimensional polymorphic hyerspacial internode of neurotranslinguistic manifestations subjugated by hyperbolic quantum entanglement."

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2007-01-12 19:22
.

Non-sense.

Patrick Patience
Offline
Last seen: 4 years 12 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Haha

I'm sorry, I had to take my comment back. Blum

Ignore this.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Totally wrong

Almost 70% of all executable have some writing to either the registry, the user profile, the application data directory or many others. This method does not make it anywhere near portable at all, unless it was already, in which case you don't need this at all.

"If you're not part of the solution, you're part of the precipitate."

Joble
Joble's picture
Offline
Last seen: 16 years 3 months ago
Joined: 2007-05-03 12:46
The topic isn't

how to make a portable app, it's make an exe from a batch file, and there has been a lot of demand for this information in the past. If I hadn't already written my own solution I would find this information invaluable.

Thanks webmin.

Have an Awesome Day!

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 5 months 3 weeks ago
Joined: 2006-11-18 10:26
bat2exe

If that's all you wanted, you could have just asked and we would have posted a link to this well know program:

bat2exe

http://www.google.com/search?source=ig&hl=en&rlz=&q=bat2exe&btnG=Google+...

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Log in or register to post comments