I have done the job as following...
I have created two batch files. Middat1.cmd and Midday2.cmd.
Midday1.cmd has the following inside
@echo off
rd 123zz321 >nul
md 123zz321 >nul
for /f "tokens=1,2" %%a in ('dir ^| find /i "123zz321"') do echo MIDDAY Backup Started at %%a %%b
net send oonal "RDS3403 MIDDAY Backup Started..." > nul
Midday2.cmd has the following inside
@echo off
rd 123zz321 >nul
md 123zz321 >nul
for /f "tokens=1,2" %%a in ('dir ^| find /i "123zz321"') do echo MIDDAY Backup Finished at %%a %%b
echo #####
net send oonal "RDS3403 MIDDAY Backup Finised..." > nul
And the Midday.res file in c:\program files\nsr\res has the following lines in it.
type: savepnpc;
precmd: "Midday1.cmd >> Backup.log";
pstcmd: "Midday2.cmd >> Backup.log";
#End
All the files Midday1.cmd, Midday2.cmd and Backup.log reside in C:\winnt\system32 folder.
It works.
Here is the Backup.log file details.
MIDDAY Backup Started at 09/09/03 16:05
MIDDAY Backup Finished at 09/09/03 16:08
#####
Hope this helps to anyone who needs this info.
;-)