XCOPY not working?

Air_Cooled_Nut (18 posts)
December 9, 2004 12:29 PM
Accepted Answer

I've got a simple Job scheduled and right now I'm testing it (manual Run) but it keeps failing and I can't figure out why.

The one and only Program Execution Task Properties are as follows:

Taget: C:\ServerBackup.bat

Window Mode: Capture Console

Execution Priority: Normal

Default settings for everything else.  Here is the batch file that is being executed:

rem Reporting Server Critical Directory Backup
XCOPY "C:\Reporting" "\\foo\private-finance\Reporting Server Backups" /c /f /h /k /r /s /y

 

Obviously, \\foo is substituted for the actual server name ;)

 

When I execute the batch file manually, like from Windows File Explorer, it works flawlessly.  When I execute it from ad Tempus it fails immediately.  There are no errors that show up in the output file from the captured console.  The login permission used is the standard admin permission being used on all the other Jobs and the login is also the admin for the directory where the files are being copied to.

 

Am I missing something?  Because based upon other batch files I am using in other Jobs, this should work. ¿!?

 

Windows XP, ad Tempus 2.0.3.0

Air_Cooled_Nut38330.6877777778
Air_Cooled_Nut (18 posts)
December 10, 2004 09:56 AM
Accepted Answer

I found the problem:  Capture Console does not work with XCOPY.

When I switched the Window Mode to Minimize the process ran fine.

 

Bug fix?

Replies are disabled for this topic.