![]() The original script accepts two arguments - the. Once finished, the temp files are removed. ![]() The batch file contained in the EXE file is executed in a new.The config file generated by the script is read.The contents of the EXE file are extracted to the temp directory.When you execute the resulting EXE file, the process goes something like this: The resulting file is an EXE, however it is intended to be used for self-extracting installers. It is important to note that while the resulting file runs exactly the same as the source BAT file, this is not a true batch to executable conversion. 7z archive (which is expected) and then exits without running TEST.bat. However calling TEST.exe triggers unzipping the. ![]() %PathTo7Zip% is the directory to 7zCon.sfx %Config% is the config.txt file aboveĪnd %OutputFile% is my output TEST.exe file which should supposedly run the bat file when I call it according to the author of the guide. bat): COPY /B "%PathTo7Zip%\7zCon.sfx" %Config% %Source7ZFile% %OutputFile% I have the following TEST.bat: ECHO This is a Test bat to exeĪnd the config.txt: I call the following command line (in another. ![]() The reason I am using this method is because all machines in my workplace already have 7zip installed and can use it, however I am not allowed to make the script work using external software not present on the main server to be compatible on any machine in the company. I am trying to convert from bat to exe without installing any new software such as Bat to Exe Converter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |