Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, August 30, 2018 9:49 PM
I would like to schedule a task, triggered by any *.nc file being saved to a folder named W.
I would like for these actions to follow:
1) Folder X is deleted;
2) Folder W is copied;
3) Folder W is pasted in Folder X's location;
4) Folder W(1) is renamed Folder X.
I will do the same for Folders Y & Z, respectively.
Can this be done in the Task Scheduler? If so, then how?
Alternatively, is there a better way to accomplish this?
All replies (1)
Friday, August 31, 2018 8:22 AM
Hi,
Please refer to the marked answer in the following link to create a custom view in Event Viewr to monitor copy folder. (But it seems that you can't specify the copy folder distination in Event Viewer)
Using Event Viewer to track changes to Files
Then, go to task scheduler and configure the trigger as the specify event ID you set.
At last, we need to ask for help from script forum for creating corresponding actions which you desired. Or we could create the scirpt by ourselves through the following syntax.
Delete a file: DEL [options] [/A:file_attributes] files_to_deleteCopy a folder:xcopy sourcepath destinationpath /O /X /E /H /K
Rename a folder:ren "old-filename.txt" "new-filename.txt"
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Bests,
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].