Script to execute a bat
I suck at scripting... but I need a script to execute a .bat file after extracting everything. Can anyone help me?
11 posts
ExecShell "at 00:00 /every:Su,M,T,W,Th,F,S "cd $INSTDIR | .\update.bat""
But looking at your example, it seems that that you also want to run this as batch file as a scheduled task. The only way that I know of doing this is to incorporate this into Windows as a scheduled task. This means that you're going to have to make some type of API call or call to an external EXE that will set this up.
ExecShell "open" "C:\path\update.bat"
Edit: However, I don't think at.exe is on Win9x therefore the Scheduled Tasks link will be bettr.ReadEnvStr $R0 COMSPEC
nsExec::Exec '"$R0" /C at 00:00 /every:Su,M,T,W,Th,F,S "cd $INSTDIR | .\update.bat"'