Results 1 to 4 of 4

Thread: Bat file to Create folder with date

  1. #1
    Join Date
    Jan 2009
    Posts
    48

    Bat file to Create folder with date

    I wan't a bat file that will create folders with the current date. How do i do it. Also the created folders should have the default name of the computer's user name followed by date. Can this be possible made? Help! Thanks

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Bat file to Create folder with date

    Use your parameters whatever and wherever necessary, use this syntax
    Code:
    md %username%%date%
    This just do your work fine... All the best!

  3. #3
    Join Date
    Jan 2009
    Posts
    48

    Re: Bat file to Create folder with date

    Hey thanks for the quick response, I just tried it but it game be an error saying :
    Code:
    The syntax of the command is incorrect.
    So i tried this in dos
    Code:
    echo %date%
    and i got the output
    Code:
    Sat 06/20/2009
    But in folder and file name "/" is not allowed. So any way to change the "/"to" -"? Please help!

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: Bat file to Create folder with date

    That is easy. Go to Control Panel > Regional and Language Options > Customize > Date. There at the bottom there will be date seperator shown as "/" Just change this to "-" and you are done. All the best!

Similar Threads

  1. Replies: 4
    Last Post: 23-01-2011, 08:28 PM
  2. Modify file or folder creation date
    By Abode in forum Portable Devices
    Replies: 4
    Last Post: 24-09-2010, 07:35 AM
  3. Create new folder and move files based on creation date
    By dstiff in forum Windows Server Help
    Replies: 3
    Last Post: 13-11-2009, 05:04 AM
  4. Replies: 3
    Last Post: 17-01-2009, 06:34 AM
  5. Batch file to create directory with a date in Windows 2003
    By Aadimoolan in forum Window 2000 Help
    Replies: 2
    Last Post: 16-11-2007, 02:55 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,700,239.44782 seconds with 16 queries