PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 CMD Promt
Make Directory With Name As Date
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 CMD Promt
Make Directory With Name As Date
![]() |
Make Directory With Name As Date |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
>-----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 > >. > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > >. > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

