![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-18 00:14 |
47,814 topics / 349,907 posts / today 4 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » Timed copy, files from a specified time |
| Printable Version 804 / 1 |
| Floor1 xiemoju | Posted 2006-03-21 11:40 |
| 新手上路 Posts 1 Credits 6 | |
|
Can anyone tell me a batch command that does the following:
On a 2003 system, every day at 0:00, copy the files newly created the previous day in a specific directory to an FTP server in another city |
|
| Floor2 3742668 | Posted 2006-03-21 19:58 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
First use set /a to get the current date, then still use set /a to calculate the previous day's date, paying attention to the end-of-month case.
Then use the xcopy /d command to copy the previous day's files Finally add this file to Task Scheduler. Although batch files do have their own delay function, it is not recommended to use it. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |