Task Manager
i have created a task to move files from one server to another using a batch file. This is what the batch file looks like: del /Q "\\cagnas\backup\65tyk21\2_Monday\*.bak" move /Y "D:\RB Backup\*.bak" "\\cagnas\backup\65tyk21\2_Monday\" move /Y "\\GZDKRL1\backupdb\*.bak" "\\cagnas\backup\65tyk21\2_monday\" All I get is a (0x1) under the Last Run Result of the task instead of Completed Successfully. The history said that it competed successfully but in only six second and nothing is moved. If I click on the batch file and run it manually it works. Does someone have an idea of the problem?
July 13th, 2010 6:06pm

Is your "D" volume a locally mounted drive? or something scripted to mount virtually upon logon? also - do you mean "Task Scheduler" instead of task manager?
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2010 6:15pm

I think you meant Task Scheduler. For this, what account (& what type) are using for the scheduled (copy) task to the other server?
July 13th, 2010 6:15pm

If the job connects to another machine you may need to add the user/ group 'logon as batch job' rights (server side). Control Panel|Admin Tools|Local Security Policy\Local Policies\User Rights Assignments "Log on as a batch job" Remember that if it involves network resources to make sure the user account has permissions to the resources. Also check the logs for clues. <=2003 Scheduled Tasks|Advanced|View Log 2008 Server Manager|Diagnostics|Event Viewer|Application Logs|Microsoft|Windows|TaskScheduler BTW I'd suggest doing copy/delete since if something happens mid-stream of the move all may be lost. Regards, Dave Patrick .... Microsoft Certified Professional -Microsoft MVP [Windows]
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2010 6:17pm

Hi floresr , Agree with Dave. Permission setting of task may cause this issue. What if you manually run this task when you login sever? What permission you set for execute this task? What the OS version is ? Thanks. Tiger LiPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
July 15th, 2010 5:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics