I am working on a 2008 Sql Server in which has Batch File set up to
run.
The Task Scheduler "Last Run Time" does not show any history for the
scripts I have set up? I looked at my scripts and do not understand
why Task Scheduler is not updating as needed. Task Scheduler should
be creating a history log on this script?
The scripts details are as follows:
@echo off
REM
REM This script stops the Xpress Server for the Integrity check SQL
JOb
REM to run sucessfully
set LOGGING=d:\xps\upload\keep1\
set LOG=STOPXPS.LOG
set XPSDIR=d:\xps
set testsvc=testsvc1.fil
set UTILS=d:\progra~1\utils
echo ====================== >>%LOGGING%%LOG%
echo Stopping Xpress Server >>%LOGGING%%LOG%
echo ====================== >>%LOGGING%%LOG%
ECHO . >>%LOGGING%%LOG%
DATE /T >>%LOGGING%%LOG%
TIME /T >>%LOGGING%%LOG%
ECHO . >>%LOGGING%%LOG%
psservice stop "Xpress Server"
rem "wait long enough for server to stop before checking the status
beask "Waiting for server to stop" Default=y Timeout=45
psservice query "Xpress Server" >%XPSDIR%\%testsvc%
type %XPSDIR%\%testsvc% |find "STOPPED" >>%LOGGING%%LOG%
type %XPSDIR%\%testsvc% >>%LOGGING%%LOG%
echo "Xpress Server Service stopped ********" >>%LOGGING%%LOG%
|