简体   繁体   中英

EXE created from batch file doesn't run

I've attempted to store a base64 encoded exe within a batch file, then use certutil -decode to turn it back into an EXE. I've followed the first answer on this question to achieve this: Store a file inside of a batch file? but despite the newly created EXE being exactly the same size as the original EXE, it doesn't run, at all.

I've noticed the Language property (right click the EXE then view properties > details) is not there on the newly created EXE. Would this be what's preventing it from executing? When attempting to execute the nely created EXE, a popup appears saying 'This app can't run on your PC'.

Use this command and you will see any differences that are there.
If it is not identical then the bat-2-exe converter isn't doing the conversion correctly.

fc /b "old.exe" "new.exe"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM