Results 1 to 3 of 3

Thread: Batch file to create directory with a date in Windows 2003

  1. #1
    Join Date
    Oct 2004
    Posts
    45

    Batch file to create directory with a date in Windows 2003

    I am using Windows 2003 server. I need help with creating a batch file that can allow me to make new folders with date. I am not able to find any working command for the same. Does anyone knows the right procedure for the same. I am trying to work with mkdir right now and hope that it will work. What are your suggestions on the same.

  2. #2
    Join Date
    Sep 2004
    Posts
    110
    You must try echo md%%date. I think this might work. There are number of different things that you can try in dos but for that you need the right references. The problem with Windows is that there is no DOS provided. Whatever you have to do, you can only use cmd. The chdo md used with mkdir can be helpful but I am about the results.

  3. #3
    Join Date
    Sep 2004
    Posts
    73
    I found this code on web and I think that this is going to work well. The code is -- for /f "tokens=1* delims=" %%a in ('date /T') do set datestr=%%a mkdir %datestr%. Try this one and I am sure this is going to work. Creating batch file is not a great deal. But getting the right script that can work which matters the lot.

Similar Threads

  1. Create and edit batch file in windows 7?
    By bomblast in forum Tips & Tweaks
    Replies: 2
    Last Post: 08-11-2011, 03:56 PM
  2. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  3. Batch file to check directory
    By Trini Alvarado in forum Software Development
    Replies: 5
    Last Post: 01-04-2010, 11:00 AM
  4. How to create a batch file in windows 2000
    By Amma-Watson in forum Operating Systems
    Replies: 5
    Last Post: 12-02-2010, 12:15 AM
  5. Replies: 2
    Last Post: 26-05-2009, 10:41 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,687,896.67435 seconds with 17 queries