Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
The following does not work correctly, reports 255:
RunWait("c:\f-prot\f-prot.exe", "c:\temp3\eicar.com /SILENT /ARCHIVE /DUMB /NOMEM /WRAP /REPORT=c:\temp3\report.txt") errlvl=IntControl(64, 0, 0, 0, 0) Message("Errorlevel is:", errlvl)The following does not work correctly, reports 0:
RunWait("command.com ","/c c:\f-prot\f-prot.exe c:\temp3\eicar.com /SILENT /ARCHIVE /DUMB /NOMEM /WRAP /REPORT=c:\temp3\report.txt") errlvl=IntControl(64, 0, 0, 0, 0) Message("Errorlevel is:", errlvl)The following is a workaround, reports 3:
batfile=FileOpen("c:\temp3\test.bat", "WRITE") FileWrite(batfile, "c:\f-prot\f-prot.exe c:\temp3\eicar.com /SILENT /ARCHIVE /DUMB /NOMEM /WRAP /REPORT=c:\temp3\report.txt") FileClose(batfile) RunWait("c:\temp3\test.bat", "") errlvl=IntControl(64, 0, 0, 0, 0) FileDelete("c:\temp3\test.bat") Message("Errorlevel is:", errlvl) ExitBill Meek
Article ID: W15540
File Created: 2011:01:12:09:34:50
Last Updated: 2011:01:12:09:34:50