Search found 4 matches
- 30 Mar 2013 15:02
- Forum: DOS Batch Forum
- Topic: Copying files into new folders named based on file dates
- Replies: 7
- Views: 6458
Re: Copying files into new folders named based on file dates
This is just fabulous, foxidrive! I did a little more tweaking to add a prompt at the beginning, confirming if I really wanted to proceed, and also to echo some feedback to the user while it is running. I also changed it to a move operation instead of a copy. Then I changed it to use my SD card as t...
- 24 Mar 2013 08:30
- Forum: DOS Batch Forum
- Topic: Copying files into new folders named based on file dates
- Replies: 7
- Views: 6458
Re: Copying files into new folders named based on file dates
That's awesome, it is working! Thank you so much!!! I did some tweaking on the date format, and added another loop for copying my video files to a different target folder. I'm trying to track each copy in a logfile, as well. But it isn't creating my file. What else do I need to change here? Also, if...
- 23 Mar 2013 23:28
- Forum: DOS Batch Forum
- Topic: Copying files into new folders named based on file dates
- Replies: 7
- Views: 6458
Re: Copying files into new folders named based on file dates
Here is my lousy attempt. I know there are all kinds of problems here, including the fact that I don't think it searches recursively. @echo off cls set src=C:\Working\Source set target=C:\Working\Target\Pictures cd %src% For %%a in (*.jpg) Do ( set filedate=%%~ta set yyyy=%filedate:~11,4% set mm=%fi...
- 23 Mar 2013 22:52
- Forum: DOS Batch Forum
- Topic: Copying files into new folders named based on file dates
- Replies: 7
- Views: 6458
Copying files into new folders named based on file dates
I need help. I am very weak at DOS, and would like to create a .bat file that does the following. Assign a source folder variable and a target folder variable. Find all files in the source folder which match a filename pattern of *.jpg. Look recursively in all subfolders, as well. Determine the modi...