PC Review


Reply
Thread Tools Rate Thread

Make Directory With Name As Date

 
 
Daniel Key
Guest
Posts: n/a
 
      10th Jul 2003
I have a batch file that is ran daily and I need to be
able to create a new directory every time it is ran. I
want the directory to automatically be name as that day's
date mm/dd/yyyy. I have searched for such a command but
cannot seem to find it. Can anyone help on this matter.

Thanks,

Daniel
 
Reply With Quote
 
 
 
 
Phil Robyn
Guest
Posts: n/a
 
      10th Jul 2003
Daniel Key wrote:

> I have a batch file that is ran daily and I need to be
> able to create a new directory every time it is ran. I
> want the directory to automatically be name as that day's
> date mm/dd/yyyy. I have searched for such a command but
> cannot seem to find it. Can anyone help on this matter.
>
> Thanks,
>
> Daniel


set zdate=%date:~4%
set zdate=%zdate:/=-%
if not exist \%zdate% md \%zdate%

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

 
Reply With Quote
 
Daniel Key
Guest
Posts: n/a
 
      10th Jul 2003

>-----Original Message-----
>Daniel Key wrote:
>
>> I have a batch file that is ran daily and I need to be
>> able to create a new directory every time it is ran. I
>> want the directory to automatically be name as that

day's
>> date mm/dd/yyyy. I have searched for such a command

but
>> cannot seem to find it. Can anyone help on this matter.
>>
>> Thanks,
>>
>> Daniel

>
>set zdate=%date:~4%
>set zdate=%zdate:/=-%
>if not exist \%zdate% md \%zdate%
>
>--
>Phil Robyn
>Univ. of California, Berkeley
>
>u n z i p m y a d d r e s s t o s e n d e - m a

i l
>
>.
>

 
Reply With Quote
 
Daniel
Guest
Posts: n/a
 
      10th Jul 2003
Thank You!!!!!!



>-----Original Message-----
>Daniel Key wrote:
>
>> I have a batch file that is ran daily and I need to be
>> able to create a new directory every time it is ran. I
>> want the directory to automatically be name as that

day's
>> date mm/dd/yyyy. I have searched for such a command

but
>> cannot seem to find it. Can anyone help on this matter.
>>
>> Thanks,
>>
>> Daniel

>
>set zdate=%date:~4%
>set zdate=%zdate:/=-%
>if not exist \%zdate% md \%zdate%
>
>--
>Phil Robyn
>Univ. of California, Berkeley
>
>u n z i p m y a d d r e s s t o s e n d e - m a

i l
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Problem: How Do I Make a, Multiple Date, Date Counter Sgt Gordon Microsoft Access 5 30th Nov 2007 09:53 PM
Make date change in excel to current date when opening daily? =?Utf-8?B?amFtaWU=?= Microsoft Excel Misc 3 1st Mar 2006 04:37 PM
How do I make a directory = date? md %date% ? adeveloper Microsoft Windows 2000 8 20th May 2005 10:57 AM
How can I make the date field change automatically when I make a . =?Utf-8?B?TmdpbmEgMjg=?= Microsoft Access Database Table Design 6 15th Feb 2005 04:54 PM
Re: Make Directory With Name As Date stat Microsoft Windows 2000 CMD Promt 3 13th Jul 2003 07:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:35 AM.