[AccessD] Add Date/Time Stamp to xcopy target

Rocky Smolin rockysmolin at bchacc.com
Thu Apr 14 16:20:26 CDT 2011


Client found these links:

 

http://en.kioskea.net/forum/affich-26059-rename-file-with-datetime-appended-
to-filenam

 

http://www.computing.net/answers/dos/can-a-batch-file-get-a-files-datetime-s
tamp/318.html

 


Reminds me of how much stuff we used to do with batch files.  

R
 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka
Sent: Thursday, April 14, 2011 1:20 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Add Date/Time Stamp to xcopy target

Not sure about xcopy, but robocopy has that kind of ability.  Robocopy used
to be only available the extra resources CD you had to buy separately, but
it's included in Windows 7 now.

Drew

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin
Sent: Thursday, April 14, 2011 3:05 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Add Date/Time Stamp to xcopy target

Dear List:
 
Client wants to do regular backup to his EHD using Windows Scheduler.
He's
almost there but has a question:
 
The following in a batch file seems to work for backing up DocketWorks: 

 

xcopy "W:\DWData.mdb" "C:\ProgramData\DocketWorks"

 

Do you know if there is some way to append a date time stamp to it so it
does not always overwrite the previous backup? 

Anyone know?

 

TIA

 

Rocky

 

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com The information contained in this
transmission is intended only for the person or entity to which it is
addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive
material. If you are not the intended recipient, please contact the sender
immediately and destroy the material in its entirety, whether electronic or
hard copy. 
You are notified that any review, retransmission, copying, disclosure,
dissemination, or other use of, or taking of any action in reliance upon
this information by persons or entities other than the intended recipient is
prohibited.


--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list