Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my phone set up so that when it takes photos, it sends them to file on my desktop. I would like to have a task run once a day that checks the folder and then

  1. Creates a folder on the external drive with the day embedded (e.g. Photos-2012-10-08)
  2. Move all the files from desktop folder to the newly created folder

How do you go about creating a script that the Windows Task Scheduler can use to accomplish that goal?

share|improve this question
Have you read up about batch file programming? – user3463 Oct 12 '12 at 4:01
up vote 0 down vote accepted

SET dd=%DATE:~0,2%
SET mm=%DATE:~3,2%
SET yyyy=%DATE:~6,4%

set curr_date=%yyyy%-%mm%-%dd%
set new_dir=S:\ExclusiveToBackup\Archived\%curr_date%

mkdir %new_dir%

move C:\Users\ZZZ\Dropbox\ToArchive* %new_dir%


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.