win2008 Planning Tasks---considerations

Source: Internet
Author: User

Finally solved a problem that bothered me for a long time.

I created a task schedule in win2008 R2, and every day 1 o'clock in the morning run batch------automatically back up C drive a file to the D drive a folder, and the current time as the name of this folder, write a Notepad to record the current time into the path. The name of the batch is auto backup Tess&webtess.cmd


The execution failed for granted. But there is no valid error hint that seems to me. The task schedule does not respond even if you run it manually. (Only the black box flashed) until I noticed the "&" symbol. Change the regular name, try to run it manually once, OK, things don't seem so pessimistic.

Then the second question lay in front of me, and when I tried to get the task plan to run automatically, the log was still an error. Only the error content has changed to the following:

(Error chart)


The picture tells me that a process has been executed and cannot be executed repeatedly. As a result, because batch processing is cmd, I will kill all the CMD process one by one manually. Experiment again and experiment successfully. Reach the goal.



Conclusion (PRECAUTIONS):

1, not to bury themselves in the pit, try not to play in the process of what with special symbols of the strange name

2, CONFIGURED as "If the task has already been done, then stop the existing process" (Figure III)

3, CONFIGURED to "regardless of whether the user login is running, do not save the password, only the local operation" (Figure I)

Here are some of the key:

(Figure I)


(Figure II)


(Figure III)



Ps:

1, in the online search, we all said to the figure II in the Startin to fill in a program to run the path, without the "\" number and quotation marks.

2, do the programmer's buddy told me to be in Figure two add arguments fill in a parameter-startup

The above record, stay for a rainy-out.



Thanks to old Candide for his help and nudge

Start to think debugging errors is a very fulfilling and interesting thing



@echo Offrem record the batch processing above and leave a commemorative REM The batch is designed to back up two software databases MD e:\tess_webtess_backup\tess_%date:~6,4%%date:~0,2%%date:~3,2% Copy  C:\TESS\School.ldb  e:\tess_webtess_backup\tess_%date:~6,4%%date:~0,2%%date:~3,2%\school.ldbcopy  C:\tess\school.mdb  E:\tess_webtess_backup\tess_%date:~6,4%%date:~0,2%%date:~3,2%\school.mdbcopy  C:\tess\tess.exe    E:\tess_ Webtess_backup\tess_%date:~6,4%%date:~0,2%%date:~3,2%\tess.exemd e:\tess_webtess_backup\webtess_%date:~6,4%% Date:~0,2%%date:~3,2%copy  C:\webtess\webtess.ldb    e:\tess_webtess_backup\webtess_%date:~6,4%%date:~0,2% %date:~3,2%\webtess.ldbcopy  C:\webtess\webtess.mdb    e:\tess_webtess_backup\webtess_%date:~6,4%%date:~ 0,2%%date:~3,2%\webtess.mdbecho%date%%time%  >>  E:\tess_webtess_backup\log_date.txt






win2008 Planning Tasks---considerations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.