Hello,
I want to make a directory with name of date
for example today is: 2010/11/02
directory name: 2010-11-02
or other type of names that show the date
thank u
how to make directory with name of date
Moderator: DosItHelp
-
- Posts: 84
- Joined: 08 Sep 2010 10:25
- Location: Iran,Kashan
- Contact:
Re: how to make directory with name of date
Hi there,
Try this:
Set MM=%date:~4,2%
Set DD=%date:~7,2%
Set YYYY=%date:~-4%
md %YYYY%-%MM%-%DD%
Try this:
Set MM=%date:~4,2%
Set DD=%date:~7,2%
Set YYYY=%date:~-4%
md %YYYY%-%MM%-%DD%
-
- Posts: 84
- Joined: 08 Sep 2010 10:25
- Location: Iran,Kashan
- Contact:
Re: how to make directory with name of date
thank u very much acun
-
- Posts: 84
- Joined: 08 Sep 2010 10:25
- Location: Iran,Kashan
- Contact:
Re: how to make directory with name of date
please explain:
%date:~4,2%
%date:~7,2%
%date:~-4%
%date:~4,2%
%date:~7,2%
%date:~-4%