Batch file

jbob

Member
Nov 15, 2001
65
0
0
I'm looking for a way to automate creating folders named via the date. I thought something like mkdir %date% would work, but it won't. I'm trying to automate the process of taking pictures off of a Memory stick to a PC for my inlaws. They got a new digital camera, and I don't want to babysit them when they need to take the pics off the card. I tipically store photos in folders named by the date they come off the card, and I was thinking the same for them. THe batch file would create a folder named the date, then it would move the pics off the stick into the new folder.
 

UCJefe

Senior member
Jan 27, 2000
302
0
0
This is probably a lot harder than you want. The problem is that mkdir treats the forward slashes in the output of %date% as separate directories so it tries to create all of them. You are probably going to need to use some sort of either WSH scripting or better yet Perl or something else. If you want to gander at the batch file route there is good info on this page which should get you pretty close. Especially the example scripts over here. Regardless, this probably isn't going to be easy to do in a batch file. You may want to rethink your choice of technology to accomplish this.