Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Vista Task Scheduler - Batch File

Reply
Thread Tools Display Modes

Vista Task Scheduler - Batch File

 
 
MCM
Guest
Posts: n/a

 
      06-27-2008
I have a batch file with an xcopy routine. This runs correctly when I execute
it manually. I am trying to automate this task with task scheduler on my
Vista machine. When it attempts to run, the scheduler reports the task
completed with an exit code of 0x4. It is never actually executed.
 
Reply With Quote
 
 
 
 
Mark L. Ferguson
Guest
Posts: n/a

 
      06-27-2008
When you setup the scheduled task, there is a checkbox for running 'with the
highest privileges'. This will grant you the 'Permissions' you need to open
files. If you are also setting this task to 'run whether logon on or not' is
will fail to show a run window.(GUI)

--
click the Ratings button. Voting helps the web interface.
http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a post''
Mark L. Ferguson

"MCM" <> wrote in message
news:44C3447F-95ED-4440-8808-...
> I have a batch file with an xcopy routine. This runs correctly when I
> execute
> it manually. I am trying to automate this task with task scheduler on my
> Vista machine. When it attempts to run, the scheduler reports the task
> completed with an exit code of 0x4. It is never actually executed.


 
Reply With Quote
 
MCM
Guest
Posts: n/a

 
      06-27-2008
Highest privileges is already checked.

I am aware that it will not show a window, but the task takes about 2 hrs to
run and when I run it from the task scheduler, it finishes instantly. I can
also see from the results that it is not executing.

"Mark L. Ferguson" wrote:

> When you setup the scheduled task, there is a checkbox for running 'with the
> highest privileges'. This will grant you the 'Permissions' you need to open
> files. If you are also setting this task to 'run whether logon on or not' is
> will fail to show a run window.(GUI)
>
> --
> click the Ratings button. Voting helps the web interface.
> http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a post''
> Mark L. Ferguson
>
> "MCM" <> wrote in message
> news:44C3447F-95ED-4440-8808-...
> > I have a batch file with an xcopy routine. This runs correctly when I
> > execute
> > it manually. I am trying to automate this task with task scheduler on my
> > Vista machine. When it attempts to run, the scheduler reports the task
> > completed with an exit code of 0x4. It is never actually executed.

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Task Scheduler can't run OK *.BAT file Ron A. Zajac Windows Vista Administration 8 09-25-2009 09:49 PM
Task Schedule batch file donator Windows Vista General Discussion 7 03-09-2009 09:12 PM
Task Scheduler Returned Error 0x2 While Running Batch File lqd1967 Windows Vista Administration 0 06-09-2008 11:00 AM
Schedule a task with Vista task Scheduler wakes up computer and mo Michele Windows Vista General Discussion 0 06-05-2008 09:26 AM
Task Scheduler and Robocopy Batch Job bobneedshelp Windows Vista General Discussion 5 11-29-2007 03:28 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59