Re: Dos AT command
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 29 Mar 2006 09:14:44 +1100
"monorato" <monorato@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:142B73E9-91CC-4532-9D00-88CCB8E62347@xxxxxxxxxxxxxxxx
I have mapped a drive on my local computer to a file server. I created ain
batch file to copy files from the server onto the local machine. If I type
the name of the batch file at a command prompt it executes correctly. Inow
want it to run at night. I have tried the AT command on both Windows 2000and
XP with no success. Here is an example of what I have entered:help.
AT 1:30am /every:monday c:\mon.bat /s /e /h /y
When I come in the next morning, nothing has copied. Can someone please
Give yourself some eyes so that you can see what's going
on. Instead of invoking c:\mon.bat, invoke this batch file:
Line1 @echo off
Line2 echo %date% %time% Start of task > c:\test.log
Line3 echo User=%UserName%, Path=%path% >> c:\test.log
Line4 xcopy.exe /s /e /h /y "c:\SourceFolder" "d:\DestFolder\"
1>>c:\test.log 2>c:\test.err
Line5 echo ErrorLevel of c:\Tools\YourTask.exe=%ErrorLevel% >> c:\test.log
Line6 echo %date% %time% End of task >> c:\test.log
Examine the two log files after the job has run!
Note that at.exe will run the batch file under the System
account. This account has no access rights to networked
resources. Use the Task Scheduler as suggested by other
respondents if copying to a networked drive.
.
- Prev by Date: Re: When I create a custom paper type is it for all printers
- Next by Date: no restore disc
- Previous by thread: Re: Dos AT command
- Next by thread: Re: Free System Memory
- Index(es):
Relevant Pages
|