Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Vista Newsgroups > Vista General

RB

Vista - Vista Business Task Scheduler

Reply
 
07-29-2007   #1 (permalink)
JoseR


 

Vista Business Task Scheduler

I have several batch files that ran well under XP and I cannot get them to
run under Vista Business. Double clicking on the files makes them run fine.
Scheduling them in the Task Scheduler starts the cmd.exe process but no DOS
window opens and the process terminates only when I do it manually. This is
true for as simple a batch file as
@echo off
echo Hello World
Pause
I have tried everything and nothing works.

My System SpecsSystem Spec
07-30-2007   #2 (permalink)
Jon


 

Re: Vista Business Task Scheduler



"JoseR" <JoseR@discussions.microsoft.com> wrote in message
news:CC1D5249-50C2-4F9A-A6BB-FBFB0B14481A@microsoft.com...
>I have several batch files that ran well under XP and I cannot get them to
> run under Vista Business. Double clicking on the files makes them run
> fine.
> Scheduling them in the Task Scheduler starts the cmd.exe process but no
> DOS
> window opens and the process terminates only when I do it manually. This
> is
> true for as simple a batch file as
> @echo off
> echo Hello World
> Pause
> I have tried everything and nothing works.



The only thing I can think is that you're scheduling them using a different
account than the one you're logged in with, so the UI is thrown up
elsewhere.

--
Jon

My System SpecsSystem Spec
07-31-2007   #3 (permalink)
JoseR


 

Re: Vista Business Task Scheduler

Jon:
The batch I really want to run is a "backup" batch that has a series of
xcopy commands. In between there are dos commands to write to a file in
order to check if xcopy commands were done. Today I found that the xcopy
commands were actually performed, but the file was not written to. I will
try adding a path to the file. I have already checked for the file being
placed somewhere else, and it was not.

JoseR

"Jon" wrote:

>
>
> "JoseR" <JoseR@discussions.microsoft.com> wrote in message
> news:CC1D5249-50C2-4F9A-A6BB-FBFB0B14481A@microsoft.com...
> >I have several batch files that ran well under XP and I cannot get them to
> > run under Vista Business. Double clicking on the files makes them run
> > fine.
> > Scheduling them in the Task Scheduler starts the cmd.exe process but no
> > DOS
> > window opens and the process terminates only when I do it manually. This
> > is
> > true for as simple a batch file as
> > @echo off
> > echo Hello World
> > Pause
> > I have tried everything and nothing works.

>
>
> The only thing I can think is that you're scheduling them using a different
> account than the one you're logged in with, so the UI is thrown up
> elsewhere.
>
> --
> Jon
>
>

My System SpecsSystem Spec
08-01-2007   #4 (permalink)
JoseR


 

Re: Vista Business Task Scheduler

To All:
I FInally got everything to work. For all those having the same
problems transferring DOS batch scheduled tasks from WindowsXP to Vista:
1. Mapped drives are not recognized and UNC paths are needed
2. All files named in the batch need to have completely qualified paths

HTH

JoseR
My System SpecsSystem Spec
10-25-2007   #5 (permalink)
Bernard Lynch


 

Re: Vista Business Task Scheduler

I am having similar problems. Originally tried to use DOS batch files using
xcopy to backup data files from a mapped network drive to a local removeable
drive. Subsequently rewrote the batch files in Vista using Notepad,
rescheduled them, then changed the mapped drive to the full network address.
I am definitely logged on as the correct user but set the switch to run
irrespective of user logon as a precaution. The Task Scheduler says the
tasks are running but nothing appears to happen and the files certainly do
not reach the target drive. The Scheduler never terminates the task.

Any advice would help.

Bernard Lynch
--
Bernard Lynch


"JoseR" wrote:
Quote:

> To All:
> I FInally got everything to work. For all those having the same
> problems transferring DOS batch scheduled tasks from WindowsXP to Vista:
> 1. Mapped drives are not recognized and UNC paths are needed
> 2. All files named in the batch need to have completely qualified paths
>
> HTH
>
> JoseR
My System SpecsSystem Spec
Reply

RB


Thread Tools


Similar Threads for: Vista Business Task Scheduler
Thread Forum
Task Scheduler Compatibility module task status update failed General Discussion
Task Scheduler Error-task image corrupt or has been tampered with User_Feed_Synchroni General Discussion
Help Needed With Vista Business Task Scheduler General Discussion
Schedule a task with Vista task Scheduler wakes up computer and mo Vista General
Task scheduler returns an error : the task image is corrupt ortamp Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd