<< Click to Display Table of Contents >> Copy Log Files to a Network Server |
![]() ![]() ![]() |
How to make a copy of SpecView's Log Files to, for example, a Network Server?
Typically this would be done just after midnight, for example, one second after midnight (00:00:01) by the Strategy Controller.
If the logfiles are copied using the standard Windows 'copy' command then this will copy all the files each time, including those which have already been copied. Therefore using the 'xcopy' command is preferable.
To copy the files, and to keep a record of which files were copied & when, 2 files will be needed:
empty.txt - just containing one carriage-return character.
xcopythem.bat - containing:
date < empty.txt >> xcopylog.txt
type empty.txt >> xcopylog.txt
time < empty.txt >> xcopylog.txt
type empty.txt >> xcopylog.txt
C:\WINDOWS\COMMAND\XCOPY /D /C /Y C:\SV3\DEFAULT\??_???.* C:\SAFE >> xcopylog.txt
type empty.txt >> xcopylog.txt
In this example the logfiles to be copied are in C:\SV3\DEFAULT
they are being copied to: C:\SAFE
and the XCOPY command is in C:\WINDOWS\COMMAND
Please note the underscore character between the two and the three question marks.
It may be worth setting the 'Close on exit' property on the xcopythem.bat batch file using Windows Explorer.
This will create an output file (xcopylog.txt) which contains the date & time of each copy together with a list of the files copied.