Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: copy to dir with date  (Read 4149 times)

0 Members and 1 Guest are viewing this topic.

mitch

  • Guest
copy to dir with date
« on: January 31, 2005, 01:12:31 PM »
I want to copy files to a directory with the name of the date.
To make the directory i type md %date%
but how can i copy files to that directory??

TouchOdeath

  • Guest
Re: copy to dir with date
« Reply #1 on: January 31, 2005, 01:26:56 PM »
md %date%
cd %date%
copy FileX

mitch

  • Guest
Re: copy to dir with date
« Reply #2 on: January 31, 2005, 01:32:32 PM »
cd %date% doesn"t work...
Tried that already..

TouchOdeath

  • Guest
Re: copy to dir with date
« Reply #3 on: January 31, 2005, 01:36:10 PM »
ok.. im sorry...

md "%date%"
cd "%date%"
copy FileX

it will work.