Reputation: 3
I'm looking for a way to, on boot, move everything on my desktop to Users/[My User]/Archive/[TODAYSDATE]/. Is this possible to do in Windows with a BAT-script? I've done a similar thing on Linux and a friend helped me with Cron jobs.
How would a script like that be written, and how would it be automated? Scheduled task?
Thanks in advance!
Upvotes: 0
Views: 435
Reputation: 7215
For the batch file, it can be as simple as:
robocopy your_folder_path your_destination_path /SEC /MIR /V /TS
del your_folder_path\*
And then as suggested prior, just set a scheduled task in Windows. How you set it up will depend on which version of Windows you're running.
Upvotes: 1
Reputation: 702
You can use scheduled tasks. In Windows xp you can find it in control panel.
In latest versions it is in control panel > administrative tools.
I think the script would look like this
move /Y path\of\origin\* path\of\destination
Upvotes: 0