Re: File Copy with ouput to log



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

.



Relevant Pages

  • File Copy with ouput to log
    ... ;O) ...very novice at scripting ... I need a script that can perform a file copy, and output info to a ... Optimaly I would like to create a log file that is appended each time ... This doesn't seem like it would be a particularly tough script but I ...
    (microsoft.public.scripting.vbscript)
  • Re: unix shell script ignores exit when in function that is piped to tee
    ... > I thought calling a function within a script did NOT create sub-shells. ... is going to be able to alter the log file to cover up any inappropriate ... entry in the log to the previous entry. ... The easiest way to use crypt to ...
    (comp.unix.shell)
  • The necessity of Setting Objects to Nothing
    ... But what happens when you've got a script that is running as ... Dim Servers, List, strComputer ... Set Folder = objFSO.GetFolder ... '~~~ Write the results of the number of users query to a log file. ...
    (microsoft.public.scripting.vbscript)
  • Re: CSVDE Importing
    ... > specify the log file path via the -j option. ... CSVDE imports can only be used to create new users ... Unfortunately, the syntax is a bit more involved than a simple csv file, ... which makes it a little more difficult to manage its content via script. ...
    (microsoft.public.windows.server.scripting)
  • Re: CSVDE Importing
    ... > specify the log file path via the -j option. ... CSVDE imports can only be used to create new users ... Unfortunately, the syntax is a bit more involved than a simple csv file, ... which makes it a little more difficult to manage its content via script. ...
    (microsoft.public.windows.server.active_directory)