Computing.Net > Forums > Windows XP > naming folder with date

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

naming folder with date

Reply to Message Icon

Name: Ted Palmer
Date: March 30, 2004 at 11:35:11 Pacific
OS: xp
CPU/Ram: p4 1gig
Comment:

I would like to have a .bat file to copy a folder and subfolders into a new folder that is named with the current date.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: trutexan
Date: April 2, 2004 at 20:42:07 Pacific
Reply:

Here's one I found on the net and use to create a folder on my e: drive with current date - minus the day and / seperators. Then I use xcopy to copy data to that folder. Hope it works for you.

set string=%date%
echo %string%
SET STRING=%STRING:~4%
SET STRING=%STRING:/=%
echo %string%
md e:\%string%
cd e:\%string%
xcopy c:\temp\*.* /e e:

The web site that gave me this info was here
http://www.robvanderwoude.com/index.html



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: naming folder with date

folder with no name www.computing.net/answers/windows-xp/folder-with-no-name/49498.html

strange folders with .exe extension www.computing.net/answers/windows-xp/strange-folders-with-exe-extension/160842.html

hide folders with fat32 file system www.computing.net/answers/windows-xp/hide-folders-with-fat32-file-system/164270.html