I have an XP workstation and an old old SCO UNIX version 3 server with often-modified files on it. I have a batch file that XP runs as a scheduled task every day. It is a simple XCOPY over samba. Here's what I have:
When XP first starts up, I get an error saying it can't get into the server. If I browse manually to the shared location, however, and then run the batch file, it works perfectly. There is something that must be initialized with the shared location and/or drive mapping that the batch file is not doing, so if the computer reboots and this missing component is not initialized, the xcopy will fail. Any suggestions on fixing that would be great.
Secondly, what switch do I use to put timestamps in the log file? Thanks guys
Code:
@ECHO ON
call :Logit>>unix_backup.log 2>&1
exit /b 0
:Logit
net use u: \\192.168.0.100\Unix-u /user:Owner owner /persistent:yes
xcopy U:\advant\*.* /e/h/k/r/c/y c:\nordic_advant
When XP first starts up, I get an error saying it can't get into the server. If I browse manually to the shared location, however, and then run the batch file, it works perfectly. There is something that must be initialized with the shared location and/or drive mapping that the batch file is not doing, so if the computer reboots and this missing component is not initialized, the xcopy will fail. Any suggestions on fixing that would be great.
Secondly, what switch do I use to put timestamps in the log file? Thanks guys