Already solved, many thanks to bozhou!!
Hello everyone, I want to batch-generate self-extracting files. How should the batch file be written?
I want to create the above a directory as the self-extracting file a.exe, the b directory as the self-extracting file b.exe, and the c directory as the self-extracting file c.exe — these three self-extracting files (the generated EXE filename should be based on the folder name). Also, after a.exe is extracted it should create a shortcut pointing to a/a1.exe, after b.exe is extracted it should create a shortcut pointing to b/b1.exe, and after c.exe is extracted it should create a shortcut pointing to c/c1.exe. How can this be done?
Right now, with the script I wrote, I can only manually modify each directory name and executable filename to create the self-extracting file!
How can I modify my script to make it work in batch?
Here is my current script aa.bat:
"C:\Program Files\WinRAR\rar.exe" a -sfx -iiconcos.ico a.exe -ap d:\game\a -zren.txt
pause
Below is the content of ren.txt:
Shortcut=s, "a/a1.exe", "Test", "Test", "Test1"
Shortcut=p, "a/a1.exe", "Test", "Test", "Test1"
Also, is it possible to integrate the comment file zren.txt into the aa.bat batch script above?
Hope all the experts can help!
[ Last edited by luoluo4413 on 2010-10-9 at 10:13 ]
Hello everyone, I want to batch-generate self-extracting files. How should the batch file be written?
I want to create the above a directory as the self-extracting file a.exe, the b directory as the self-extracting file b.exe, and the c directory as the self-extracting file c.exe — these three self-extracting files (the generated EXE filename should be based on the folder name). Also, after a.exe is extracted it should create a shortcut pointing to a/a1.exe, after b.exe is extracted it should create a shortcut pointing to b/b1.exe, and after c.exe is extracted it should create a shortcut pointing to c/c1.exe. How can this be done?
Right now, with the script I wrote, I can only manually modify each directory name and executable filename to create the self-extracting file!
How can I modify my script to make it work in batch?
Here is my current script aa.bat:
"C:\Program Files\WinRAR\rar.exe" a -sfx -iiconcos.ico a.exe -ap d:\game\a -zren.txt
pause
Below is the content of ren.txt:
Shortcut=s, "a/a1.exe", "Test", "Test", "Test1"
Shortcut=p, "a/a1.exe", "Test", "Test", "Test1"
Also, is it possible to integrate the comment file zren.txt into the aa.bat batch script above?
Hope all the experts can help!
[ Last edited by luoluo4413 on 2010-10-9 at 10:13 ]
