Re: File Copy with ouput to log
- From: "Kai.Bluesky" <kai.bluesky@xxxxxxxxx>
- Date: Thu, 29 Nov 2007 00:34:09 -0800 (PST)
dos batch may be convenience in this case,
Hope it may help!
mkdir %1
time /T > c:\temp\log.txt
echo %1 >> c:\temp\log.txt
xcopy /E /F e:\ %1 >> c:\temp\log.txt
echo "********************************************" >> c:\temp\log.txt
c:
cd %1
fsum -jm -r * >> c:\temp\log.txt
echo "********************************************" >> c:\temp\log.txt
e:
fsum -jm -r * >> c:\temp\log.txt
time /T >> c:\temp\log.txt
you may downlaod fsum from this site.
http://www.slavasoft.com/fsum/
Best Regards,
Kai
On Nov 27, 5:39 am, rhepp <rah...@xxxxxxxxx> wrote:
I want to say thank you to first to anyone who can help this
novice! ;O) ...very novice at scripting
I need a script that can perform a file copy, and output info to a
log.
I have approximately 4000 CD's I need to copy to a local hard drive.
In the process I need to keep track of how much time it takes to copy
each CD which consist of one file to multiple files and folders. I
also need to verify the Checksums against each other with MD5sum.exe.
Optimaly I would like to create a log file that is appended each time
with all that information.
Here are the steps of what I am envisioning:
Create folder: d:\location\new_folder_name (from user input)
copy file(s): copy e:\* d:\location\new_folder_name
Checksum: md5sum d:\location\new_folder_name\*
Output to logfile: ********************************************
new_folder_name
Original file
MD5 (or even if possible something
like
Copy
MD5 MD5 = verified as
an output from
Total time for the process =
hh:mm:ss checking them both)
********************************************
This doesn't seem like it would be a particularly tough script but I
have so little experience I can't figure it out. If anyone has
something like this I would be very grateful. If not and it is a
simple thing to do I would love it it you could put something together
for me with notes (a little lesson if you will).
Thank you very much for any help.
Rob Hepp
.
- References:
- File Copy with ouput to log
- From: rhepp
- File Copy with ouput to log
- Prev by Date: Re: Playing with multidimensional array!?
- Next by Date: Run VBS with Administrative Rights
- Previous by thread: Re: File Copy with ouput to log
- Next by thread: Apply multiple attributes to in-line onmouseover/out
- Index(es):
Relevant Pages
|