Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computing > Alt Msdos Batch Nt > Use date in bat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 3334 of 3405
Post > Topic >>

Use date in batchfile

by test@[EMAIL PROTECTED] Jul 8, 2008 at 02:02 AM

I have a batch file that on regular base copy's files to a certain
directory on my XP system.

I want to make this batch more intelligent.
I want to write the date of the last xcopy that returned no errors to
a file, and then make a second batch that uses this date in the batch
window.

So I have a batch file that only contains a set of XCOPY commands.
xcopy "C:\test\*.*" "N:\test" /D/E/V/C/I/Q/H/K/Y/R

But now when it copies without errors it has to write the date and
time to a date.txt file in N:\test.

The second batch should copy all the files in "N:\test" with the same
switches back to it"s original location: "C:\test\" only when someone
presses "Y" after the question: "Do you want to copy all files back to
the state they were in on: (date and time)".

So the question in the second batch should ask the question with the
date and time previously written in the date.txt file.
This to check if the files are written on a date and time they were
not corrupt.

Anybody??
Thanks in advance!
 




 10 Posts in Topic:
Use date in batchfile
test@[EMAIL PROTECTED]   2008-07-08 02:02:37 
Re: Use date in batchfile
foxidrive <gotcha@[EMA  2008-07-08 20:46:15 
Re: Use date in batchfile
test@[EMAIL PROTECTED]   2008-07-08 12:50:48 
Re: Use date in batchfile
foxidrive <gotcha@[EMA  2008-07-08 22:24:11 
Re: Use date in batchfile
foxidrive <gotcha@[EMA  2008-07-08 22:27:59 
Re: Use date in batchfile
"billious" <  2008-07-08 21:04:28 
Re: Use date in batchfile
ten.nigriv@[EMAIL PROTECT  2008-07-08 22:54:56 
Re: Use date in batchfile
test@[EMAIL PROTECTED]   2008-07-10 00:47:36 
Re: Use date in batchfile
ten.nigriv@[EMAIL PROTECT  2008-07-10 14:08:20 
Re: Use date in batchfile
ten.nigriv@[EMAIL PROTECT  2008-07-10 15:29:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Sep 8 8:50:04 CDT 2008.