Fix IT Scripts
1 like 0 dislike
Can be used to create Event Logs for QBBackup (Event Log Checks), or directly as a result based script (Exit Codes)


@Echo Off

SET QBPath=%1
SET QBDataPath=%2

EventCreate /l APPLICATION /t INFORMATION /so QBBackup /id 990 /d "Starting Quick Books Backup"
"%QBPath%\AutoBackupEXE.exe" /F%QBDataPath% /S /I1414778315
if errorlevel==0 goto success1
if errorlevel==1 goto error1
goto end

Echo "Quick Books Backup completed Successfully"
EventCreate /l APPLICATION /t INFORMATION /so QBBackup /id 991 /d "Quick Books Backup completed Successfully"
goto end

Echo "Error During Quick Books Backup"
EventCreate /l APPLICATION /t ERROR /so QBBackup /id 995 /d "Error During Quick Books Backup"
Exit 1001
goto end

SET QBDataPath=
Exit 0
asked in Databases by (887 points) | 56 views
This takes the QuickBooks Install Path and the Data Path as two separate command line operators.  Will need to put in quotes if path has spaces in it.

1 Answer

1 like 0 dislike
Best answer
Above is answer
answered by (887 points)

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
0 answers
asked Jul 19 in MaxFocus RMM by djm (150 points) | 16 views
0 like 0 dislike
0 answers
0 like 0 dislike
1 answer
asked Mar 22 in MaxFocus RMM by Heinu (150 points) | 117 views
0 like 0 dislike
0 answers
asked Aug 22, 2017 in Hardware by ShieldEdge (887 points) | 43 views
30 questions
24 answers
631 users