Backup via windows scheduler... howto?

Backup via windows scheduler... howto?

Hello,

I'm trying to create a script that makes a backup of the database. See below...
But the line after "echo Shutting down ServiceDesk..." pops up a window unfortunately that asks if I want to shutdown Yes/No. How can I get rid of this question so I can put it in the Windows Scheduler?

Note: Some lines in the code might be cut into pieces due to forum window size.

::This script creates a backup of the ServiceDesk database in D:\ServiceDesk\backup
::It can be run at any time, but should best be run at night via the windows scheduler.
::--------------------------------------------------------------------------------------

@echo off
cd D:\ServiceDesk\bin

echo Shutting down ServiceDesk...
call D:\ServiceDesk\jre\bin\javaw.exe -Dproduct.home=. -cp ..\lib\startupclasses.jar;..\lib\trayicon.jar com.adventnet.start.ProductStarter ShutdownServiceDesk ..\server\default\conf\TrayIconInfo.xml

echo Waiting 1 minute...
ping -n 60 127.0.0.1 -w 1000 >nul

echo Backing up ServicDesk
call BackUpData.bat

echo Waiting 5 minutes...
ping -n 300 127.0.0.1 -w 1000 >nul

echo Starting ServiceDesk
call startSDP.bat

echo waiting 1 minute
ping -n 60 127.0.0.1 -w 1000 >nul

echo Done! Connect to http://helpdesk:1080 from your workstation


























If there is a better/easier way/script to create a backup (via scheduler), I'd like to hear about it.

Thanx!










                    New to ADSelfService Plus?