I am running SP on a Vista basic laptop and backing up to an old XP machine I am using as a server with several USB drives attached to it.
I have a batch file with four XCOPY commands in it. When I run the batch file in a RUN command or as a DOS command line, all four commands work perfectly. When I execute the commands as a pre-snapshot command file, it skips past the command with an error (It is a 505 error). Is there some issue I need to be aware of? The manual does not indicate that there should be a problem in just running the batch file just as I would in a DOS window.
I just read some other posts about this same type of problem. It looks like you need to add credentials. I know SQUAT about credentials and would appreciate someone who knows what to do here to SPELL IT OUT LINE BY LINE so I can just copy it into my batch file.
OK. Here are all the details.
System: Vista Home Basic on a Dell D830 laptop
ShadowProtect Version: 3.2.0.2
Details of problem:
I ran the batch file (containing 4 XCOPY commands shown below) in the advanced options/commands presnapshot box. I have tested this batch file and it works without a hitch if I call it directly. It does not work in your commands box.
The “Semsim 4 & Techon backup.bat” (shown in the command line in ShadowProtect) contains these commands:
xcopy c:\users\eganders\documents\"SEMSIM 4"\*.* \\officepc\owner\"my documents"\"SEMSIM 4" /D /S /C /R /K /Y
xcopy c:\users\public\"techon inc"\*.* \\officepc\shareddocs\"techon inc" /D /S /C /R /K /Y
xcopy \\officepc\owner\"my documents"\"SEMSIM 4"\*.* c:\users\eganders\documents\"SEMSIM 4" /D /S /C /R /K /Y
xcopy \\officepc\shareddocs\"techon inc"\*.* c:\users\public\"techon inc" /D /S /C /R /K /Y
This is what ShadowProtect Desktop command detail shows:
27-Jul-2008 08:29:18 service 100 service (build 42) started job manually as full
27-Jul-2008 08:29:18 service 104 3.2.0.2 DAF7-AC25 434F-C383-4557-DA6F
27-Jul-2008 08:29:18 service 100 backup volume C:\ (NTFS)
27-Jul-2008 08:29:18 service 105 external command "C:\Users\eganders\AppData\ShadowProtect batch files\Semsim 4 & Techon backup.bat" started
27-Jul-2008 08:29:18 service 505 External command completed with error The system cannot open the file. 0x4(4)
27-Jul-2008 08:29:18 service 102 creating snapshot for \\?\Volume{fdeed328-3c67-11dd-a455-806e6f6e6963}
I think this is another problem about rights, but please let me know what I have to do to run this AND please explain the philosophy. A quick glance in your forums suggests that I am not the only one with a problem with this. The manual apparently presents it much too simplistically.