1.

Solve : MSDOS, executing param. in a Bat file?

Answer»

Hello, for compress with UPX a file, for EXAMPLE I open a msdos window and type upx.exe -o calc.exe , where calc.exe is the file to compress, I want MAKE a bat file that when I open it, it do AUTOMATIC, how I do? :s help please If you want to HARDCODE this:

batchfile.bat
Code: [Select]upx.exe -o calc.exe

If you want to make this generalized for any file:

Code: [Select]upx.exe -o %1

By GENERALIZING this, you can drag the file (ie: calc.exe) over the batch file and it will run. You can also run your batch file with a command line parameter:

batchfile calc.exe

Good luck. 8-)



Discussion

No Comment Found