Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Dos error level return code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Interbase backup routine ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ISC_USER = "SYSDBA" ISC_PASSWORD = "masterkey" LiveDB = '"C:\Program Files\Internet Manager\Data\common.gdb"' DBDir = "C:\temp\Backup" BackupDB = "%DBDir%\common.bak" If !DirExist(DBDir) Then DirMake(DBDir) DirChange("c:\temp") B = RunHideWait(Environment("COMSPEC"), '/c gbak.exe -user %ISC_USER% -Pas %ISC_PASSWORD% -backup %LiveDB% %BackupDB%') If b != @TRUE c = "Gbak not found" EndIf A = LastError() Message("Complete", "Last error was %a% or %c%") ; CrtFil = FileOpen("c:\temp\Error.log", "WRITE") ;FileWrite(CrtFil, b) ;FileClose(CrtFil)Any suggestions?
errorlevel=IntControl(64,0,0,0,0)
Article ID: W15139
File Created: 2004:05:25:13:31:56
Last Updated: 2004:05:25:13:31:56