Hi
Trying to create a basic simple script to copy a file and see how long it
takes to copy the file.
Is this a way to compare the start and finish times I output from the Time
function and then display the result in seconds for how long it took to copy.
Code shown below
Thanks
Set objFSO = CreateObject("Scripting.FileSystemObject")
'WScript.StdOut.WriteLine ("Start Time: " & Time)
StartTime = Time
objFSO.CopyFile "S:\_TEMP_\clienttest\test", "C:\PC_MIG\Test\",
OverwriteExisting
FinishTime = Time
CopyOutput = "File Copy Test" &vbCRLf &vbCRLf
CopyOutput = CopyOutput & "[This Test should take no longer 10 Seconds]"
&vbCRLf &vbCRLf
CopyOutput = CopyOutput & "Test Started : " & StartTime &vbCRLf
CopyOutput = CopyOutput & "Test Finished : " & FinishTime &vbCRLf
WScript.Echo CopyOutput