Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-06-2009
Member
 
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
Reply With Quote
  #2  
Old 20-06-2009
Member
 
Join Date: May 2008
Posts: 2,008
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!
Reply With Quote
  #3  
Old 20-06-2009
Member
 
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!
Reply With Quote
  #4  
Old 20-06-2009
Member
 
Join Date: May 2008
Posts: 2,008
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!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Bat file to Create folder with date"
Thread Thread Starter Forum Replies Last Post
Windows 7: Unable to create new folder error? File System Error 512? Raju S Windows Software 4 23-01-2011 08:28 PM
Modify file or folder creation date Abode Portable Devices 4 24-09-2010 07:35 AM
Create new folder and move files based on creation date dstiff Windows Server Help 3 13-11-2009 05:04 AM
My "File->New->Create compressed (ZIP) folder menu entry does not exist" ? shivinder Windows XP Support 3 17-01-2009 06:34 AM
Batch file to create directory with a date in Windows 2003 Aadimoolan Window 2000 Help 2 16-11-2007 02:55 AM


All times are GMT +5.5. The time now is 03:04 AM.