Make Directory With Name As Date

  • Thread starter Thread starter Daniel Key
  • Start date Start date
D

Daniel Key

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
 
Daniel said:
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%
 
-----Original Message-----


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

.
 
Thank You!!!!!!


-----Original Message-----


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

.
 
Back
Top