Results 1 to 14 of 14
  1. #1
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Calgary, Alberta, Canada
    Posts
    706
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Creating sequentially numbered folders

    I am going on a photographic holiday. At the end of each day, I would like to come back to my hotel room and download the days pictures to a folder on the hard drivel I want to know if there is a simple and/or easy way to create a number of folders that are numbered/dated sequentially? For example, I would like folders ordered like this:

    February 16
    February 17
    February 18
    .
    .
    .
    Last Folder, e.g., February 28.

    etc. This way, I could have a file structure that I can use to store and backup my image files each day. This folder sequence would be created beforehand so I don't have to worry about it on my holiday.

    I know that I can do this by creating each file manually, but I am curious to know if it is possible to do this in a way that is faster than creating each folder, one at a time. I compare this to what you can do in Excel when you need to show a sequence of row numbers and you want to be able to number a whole bunch of them at one time. Any thoughts or insight into whether or not this is possible? Thanks.

    Ron M

  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Lounger
    Join Date
    Feb 2012
    Posts
    48
    Thanks
    2
    Thanked 5 Times in 4 Posts
    Assuming your OS is some fairly recent version of Windows...
    you're welcome to try this script. The real scripting fun would start if your holiday extends into March.

    Code:
    ' make_folders
    '
    ' Open this script in Notepad.
    ' Define the first 4 variables to suit yourself.
    ' Save the script as make_folders.vbs
    ' Run the script.
    '
    ' Adapted from a script by heyscriptingguy.
    
    
    intStart = 16
    intEnd = 18
    strParentFolder = "C:\Users\Ron\Pictures\2013\"
    strStem = "February "
    
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    If Right(strParentFolder, 1) <> "\" Then
    	strParentFolder = strParentFolder & "\"
    End If
    If Not objFSO.FolderExists(strParentFolder) Then
    	MsgBox "Can't find parent folder", vbOKOnly + vbCritical, Wscript.ScriptName
    ElseIf intStart < 0 Or intEnd < intStart Or intEnd > 31 Then
    	MsgBox "Number out of range", vbOKOnly + vbCritical, Wscript.ScriptName
    Else
    	For i = intStart to intEnd
    		strNumber = i
    		strNumber = Right("0" & strNumber, 2)
    		strFolder = strParentFolder & strStem & strNumber
    		If Not objFSO.FolderExists(strFolder) Then
    			Set objFolder = objFSO.CreateFolder(strFolder)
    		End If
    	Next
    End If

  4. #3
    Silver Lounger
    Join Date
    Oct 2012
    Posts
    2,106
    Thanks
    12
    Thanked 241 Times in 234 Posts
    Also it depends on what OS you're using. In XP you have to use the ALT F W F keys (just keep holding alt down and sequence through the other keys repeatedly) to create each new folder rapid fire (30 seconds perhaps 20 folders created). Then highlight all the new folders at once (and you'll already see where this is going by that point) and rename the first folder February (16) and enter...all the rest of the folder will be named February and increase the integer in each subsequent folder by one.
    The beauty of this method is you can roll right into March or anytime of the year just by renaming the folder set again from February (29) on to March (01).

    Works the same for 7 and 8 I think except you create the new folders by holding the Ctrl and Shift keys down and alternate between the n key and Enter.

  5. #4
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,616
    Thanks
    7
    Thanked 231 Times in 219 Posts
    I use Picasa (it's free) to manage my pictures and download them from my camera. It automatically names the folders from the date info on the camera. It even names the folders correctly so they sort - YYYY-MM-DD.

    cheers, Paul

  6. #5
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Calgary, Alberta, Canada
    Posts
    706
    Thanks
    4
    Thanked 0 Times in 0 Posts
    iTobaman,thanks for the Script. Not being a real techie guy anymore, I will give it a try, but I was really hoping that there was something one could do from a menu - oh well, can't have everything -

    F.U.N. Downtown, I am using Win 7 Home edition. I am afraid that I do not understand the approach that you have outlined.

    Paul, thanks for the suggestion, but I really do not want to "manage" my images while I am on vacation - you understand, I hope. I simply want to have a file structure that I can use to store each days results. I will eventually load everything into Lightroom when I get home and manage it all there. Because, I have never used it, I am not sure if Picasa will handle my camera's raw format.

    Ron M

  7. #6
    Silver Lounger
    Join Date
    Oct 2012
    Posts
    2,106
    Thanks
    12
    Thanked 241 Times in 234 Posts
    I would just use Picasa as well, you can use as much or, as little of the management part as you wish.

    Since you are using Win 7 I can make it even easier for you to try my technique. Go to or create whatever folder you are planning on placing the numbered folders in. Then in the Organize line you will see New Folder. Click on that followed by the Enter key, then New Folder again, followed by Enter and so on. You will see new folders pop up in that folder that get numbered successively with each new folder.

    When you have a sufficient number of new folders created, drag and select ALL the new folders so they are all highlighted. Then right click on the first new folder and choose to Rename. Change the name of the first folder (with all the rest still highlighted) to February (16) or whatever starting date you want and press enter. The rest of the new folders will also be renamed automatically, with an increase in the number in parenthesis by one with each folder. In other words the second folder will get named February (17) and the third will be February (18) and so on; so you can use the number in parenthesis as your date.

  8. #7
    mart44
    Guest
    A variation to automatic numbering could be to manually place a number before the folder name. For example:

    01 February 16
    02 February 17
    03 February 18

    This way the change of month, or day of the month, wouldn't make any difference to the ordering. The folders will always be arranged by the number prefix. A zero is needed at the front otherwise, when the number changes from 9 to 10, the ten would go to the top of the list. An extra zero can be added to the prefix if you like (001 -002). It depends how many folders you envisage needing.

    Edit: Just been experimenting with the above in Windows 8 and the zero doesn't seem to be necessary. Folder 10 comes after folder 9 without a zero at the front. I seem to remember this wasn't the case in XP and Windows 7? Perhaps best to keep the zero just in case.
    Last edited by mart44; 2013-02-18 at 00:58.

  9. #8
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    2,825
    Thanks
    19
    Thanked 108 Times in 102 Posts
    It's a one-line command-line script, assuming you have started a Command Prompt window and changed into the directory in which you want to create the February folders:
    for /l %a in (16,1,28) do md "February %a"
    BATcher

    Dear Diary, today the Hundred Years War started ...

  10. #9
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,616
    Thanks
    7
    Thanked 231 Times in 219 Posts
    Picasa supports RAW format from most cameras.
    http://support.google.com/picasa/ans..._topic=1689793

    cheers, Paul

  11. #10
    Lounger
    Join Date
    Jan 2011
    Location
    Illinois
    Posts
    44
    Thanks
    11
    Thanked 1 Time in 1 Post
    This is a very cool technique. Thanks for sharing this!

    Do you know any tricks for building a monthly set, as if 01 January, 02 February, 03 March, etc.? Right now, I have a "master set" of blank folders for when I want to start a new year of photo archives and I just copy those.

    These seem like such basic folder management activities that I can't believe MS hasn't built these in long ago.

    Quote Originally Posted by F.U.N. downtown View Post
    I would just use Picasa as well, you can use as much or, as little of the management part as you wish.

    Since you are using Win 7 I can make it even easier for you to try my technique. Go to or create whatever folder you are planning on placing the numbered folders in. Then in the Organize line you will see New Folder. Click on that followed by the Enter key, then New Folder again, followed by Enter and so on. You will see new folders pop up in that folder that get numbered successively with each new folder.

    When you have a sufficient number of new folders created, drag and select ALL the new folders so they are all highlighted. Then right click on the first new folder and choose to Rename. Change the name of the first folder (with all the rest still highlighted) to February (16) or whatever starting date you want and press enter. The rest of the new folders will also be renamed automatically, with an increase in the number in parenthesis by one with each folder. In other words the second folder will get named February (17) and the third will be February (18) and so on; so you can use the number in parenthesis as your date.

  12. #11
    Silver Lounger
    Join Date
    Oct 2012
    Posts
    2,106
    Thanks
    12
    Thanked 241 Times in 234 Posts
    I think you could just add the number to the front of the name exactly as you outlined, any number of creative naming schemes would keep them in line based on month, sub sorted based on parenthetical number.

  13. #12
    New Lounger
    Join Date
    Jan 2010
    Location
    Olympia, WA
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I use what I think to be a usable method. I create only one folder for each year, the name of the folder being the year number, such as 2013. I rename each photo as follows: first digit is the month 1, 2, 3, ... 9, A, B, C. the next two digits are the day of the month. next the underscore _ followed by the camera assigned sequence number followed by the name of the person(s) in the photo. This makes it very easy to view and find photos using a browser such as windows explorer, Irfanview, etc. When I have several photos taken on the same day, I use the Bulk Rename Utility. Irfanview makes it really easy to rename each photo by using the F2 key.

    While this may seem to be a bit of work I think it worth the time as I can find photos very easily and quickly. I got the month-day idea from an Olympus camera which automatically affixed the month and day.

  14. #13
    Star Lounger
    Join Date
    Dec 2009
    Location
    near Boulder, Colorado, USA
    Posts
    80
    Thanks
    9
    Thanked 2 Times in 2 Posts
    @F.U.N. downtown

    Win 7 works like you described for XP -- very slick. (Ctrl-n opens a new window in the same folder in Win 7.)
    Last edited by cosmlou; 2013-02-21 at 23:01.

  15. #14
    New Lounger
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I saw your code example and I think I understand it. But how do I execute this code?

    Thanks,

    Hyp-Nautic

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •