Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Vista Business Task Scheduler

Reply
Thread Tools Display Modes

Vista Business Task Scheduler

 
 
JoseR
Guest
Posts: n/a

 
      07-30-2007
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.
 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a

 
      07-30-2007


"JoseR" <> wrote in message
news:CC1D5249-50C2-4F9A-A6BB-...
>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

 
Reply With Quote
 
JoseR
Guest
Posts: n/a

 
      07-31-2007
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" <> wrote in message
> news:CC1D5249-50C2-4F9A-A6BB-...
> >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
>
>

 
Reply With Quote
 
JoseR
Guest
Posts: n/a

 
      08-01-2007
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
 
Reply With Quote
 
Bernard Lynch
Guest
Posts: n/a

 
      10-25-2007
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:

> 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

 
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
Task Scheduler repeat task duration bug? sm02463 Windows Vista General Discussion 4 12-06-2008 06:40 PM
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Windows Vista Performance 2 05-03-2008 02:02 PM
task scheduler doesn't start delayed task wuschba Windows Vista General Discussion 6 07-26-2007 08:06 AM
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista General Discussion 6 07-11-2007 09:01 PM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista General Discussion 0 06-07-2007 01:51 AM



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