Regularly download files generated by date from ftp
1. Download the script get. BAT as follows:
F:
Cd f:/beifen (Script directory)
Set cicdate = % Date :~ 0, 4% % Date :~ 5, 2% % Date :~ 8, 2%
(Echo open ftp address
Echo User Name
Echo Password
Echo prompt
Echo get fig .txt
Echo bye)> ftp_beifen.src
FTP-S: ftp_beifen.src
Echo % date % end of Database Backup export, time: % time %> getftp_beifen.log
2. automatically run batch files on XP at regular intervals
The at Command is a built-in command in Windows XP, which is comparable to the "scheduled task" in windows. In terms of schedule, task management, and work transaction processing,
The at command is more powerful and powerful. The at command can run commands andProgram.
View All scheduled plans
Cancel scheduled at 5/delete
After running the command in DOS, the system automatically runs the batch file get. bat at every day.
Net stop schedule
Net start schedule
At 16:46/every: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday F:/beifen/get. bat