How to write REM Comments in a new file
Posted: 14 Jan 2021 14:55
Hi,
I'm trying to build a exe compressor for exes. The idea is to simply pack the exe with UPX and create a rar archive with the file inside. The compressed rar file is then embed with the final exe that will decompress the rar and execute the exe. The purpose is to see if the final exe is smaller than the original.
Currently i have an issue there is some REM Comments that i would like to be echo into a file using > but this doesn't pass in the command line, does anyone have a workaround?
Here is the code:
Thanks
Check my batches:
http://www.cyberlord.at/forum/?id=10589&forum=73587
I'm trying to build a exe compressor for exes. The idea is to simply pack the exe with UPX and create a rar archive with the file inside. The compressed rar file is then embed with the final exe that will decompress the rar and execute the exe. The purpose is to see if the final exe is smaller than the original.
Currently i have an issue there is some REM Comments that i would like to be echo into a file using > but this doesn't pass in the command line, does anyone have a workaround?
Here is the code:
Code: Select all
echo REM QBFC Project Options Begin >>index.bat
echo REM HasVersionInfo: No >index.bat
echo REM Companyname: >index.bat
echo REM Productname: >index.bat
echo REM Filedescription: >index.bat
echo REM Copyrights: >index.bat
echo REM Trademarks: >index.bat
echo REM Originalname: >index.bat
echo REM Comments: >index.bat
echo REM Productversion: 1. 0. 0. 0 >index.bat
echo REM Fileversion: 1. 0. 0. 0 >index.bat
echo REM Internalname: >index.bat
echo REM Appicon: %temp%\hacxx\stub.ico >index.bat
echo REM AdministratorManifest: No >index.bat
echo REM Embeddedfile: stub.rar >index.bat
echo REM Embeddedfile: Rar.exe >index.bat
echo REM QBFC Project Options End >index.bat
echo start stub.exe >index.bat
Check my batches:
http://www.cyberlord.at/forum/?id=10589&forum=73587