Many thanks for the help can you are to give me,
since made some changes to the betch file code,
referring to the assistance that you gave me
I received the response the following message.
I need to look as Percent from 1% to 100% of material being copied
by the time can I executed the file.
Originally if I download a program from internet,and waiting until a 100%.
thank you very mutch.
this mesage:
C:\Documents and Settings\Administrator.IBD\Desktop>set day=13
C:\Documents and Settings\Administrator.IBD\Desktop>set mnth=06
C:\Documents and Settings\Administrator.IBD\Desktop>set yr=12
C:\Documents and Settings\Administrator.IBD\Desktop>if 06 == 01 set mnth=JAN
C:\Documents and Settings\Administrator.IBD\Desktop>if 06 == 02 set mnth=FEB
C:\Documents and Settings\Administrator.IBD\Desktop>if 06 == 03 set mnth=MAR
C:\Documents and Settings\Administrator.IBD\Desktop>if 06 == 04 set mnth=APR
C:\Documents and Settings\Administrator.IBD\Desktop>if 06 == 05 set mnth=MAY
C:\Documents and Settings\Administrator.IBD\Desktop>if 06 == 06 set mnth=JUN
C:\Documents and Settings\Administrator.IBD\Desktop>if JUN == 07 set mnth=JUL
C:\Documents and Settings\Administrator.IBD\Desktop>if JUN == 08 set mnth=AUG
C:\Documents and Settings\Administrator.IBD\Desktop>if JUN == 09 set mnth=SEP
C:\Documents and Settings\Administrator.IBD\Desktop>if JUN == 10 set mnth=OCT
C:\Documents and Settings\Administrator.IBD\Desktop>if JUN == 11 set mnth=NOV
C:\Documents and Settings\Administrator.IBD\Desktop>if JUN == 12 set mnth=DEC
C:\Documents and Settings\Administrator.IBD\Desktop>set dte=13JUN12
Start Time = 22:00:05.09
1 file(s) copied.
sleep
'sleep' is not recognized as an internal or external command,
operable program or batch file.
Stop Time = 22:10:38.60
Total Run Time = 633 seconds
-------------------------------------------------------
this changes to the betch file code,
set day=%date:~-10,2%
set mnth=%date:~-7,2%
set yr=%date:~-2,2%
if %mnth%==01 set mnth=JAN
if %mnth%==02 set mnth=FEB
if %mnth%==03 set mnth=MAR
if %mnth%==04 set mnth=APR
if %mnth%==05 set mnth=MAY
if %mnth%==06 set mnth=JUN
if %mnth%==07 set mnth=JUL
if %mnth%==08 set mnth=AUG
if %mnth%==09 set mnth=SEP
if %mnth%==10 set mnth=OCT
if %mnth%==11 set mnth=NOV
if %mnth%==12 set mnth=DEC
set dte=%day%%mnth%%yr%
@echo off
echo Start Time = %TIME%
set /a HH=0
set /a MM=0
set /a SS=0
set /a HM=0
set /a MS=0
set /a HS=0
set /a SA=0
set HH1=%TIME:~0,2%
set MM1=%TIME:~3,2%
set SS1=%TIME:~6,2%
copy "\\192.168.2.211\f\AutoBackup DSMS\DSMS_BCK.bak" "C:\Documents and Settings\Administrator\Desktop\test\DSMS"\%dte%DSMS_Backup.bak /y
copy "\\192.168.2.211\f\AutoBackup DSMS\Dsms_Exchange.bak" "C:\Documents and Settings\Administrator\Desktop\test\DSMS_Exchange"\%dte%DSMS_Exchange.bak /y
echo sleep %1
sleep %1
echo Stop Time = %TIME%
set SS2=%TIME:~6,2%
set HH2=%TIME:~0,2%
set MM2=%TIME:~3,2%
set /a HH=%HH2%-%HH1%
set /a MM=%MM2%-%MM1%
set /a SS=%SS2%-%SS1%
if %HH%==0 goto alt
if %MM%==0 goto alt1
set /a HM=%HH%*60
set /a MS=%MM%*60
set /a HS=%HM%*60
set /a SA=%HS%+%MS%+%SS%
echo Total Run Time = %SA% seconds
goto end
:alt
if %MM%==0 goto alt1
set /a MS=%MM%*60
set /a SA=%MS%+%SS%
echo Total Run Time = %SA% seconds
goto end
:alt1
set /a SA=%SS%
echo total time: %SA%
:end
echo MSGBOX "Backup of DSMS Databasse have been save sucesfull, Thank You! *Shyqyri Hysesani*." > %temp%\TEMPmessage.vbs
call %temp%\TEMPmessage.vbs
del %temp%\TEMPmessage.vbs /f /q