Re: Can't schedule a batch file to run in the XP Pro Scheduler

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank you Phydeaux.
You dragged me from the dark into the light.
The link you provided is worth it's weight in ???/something.
I had the same problem ( different program but same idea) as Bud but never
found the missing link you provided.
Thanks again.




"Phydeaux" <Phydeaux_435@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ODJo%23ilsFHA.4072@xxxxxxxxxxxxxxxxxxxxxxx
> Check the "Properties" of the Scheduled Task. What folder is specified as
> the "Start in:" folder? Windows scheduler will look in C:\Windows and
> C:\windows\system32. If your backup program called in the BAT file is in
> D:\mybackup then you need that folder in the "start in" box. TryingtoHelp
> is correct that the path is important in the TaskScheduler.
> You may want to add the folder to your PATH:
> http://www.computerhope.com/issues/ch000549.htm
>
> BTW, do all other scheduled tasks run as scheduled or is this the only
> task trying to run? What is shown in C:\WINDOWS\SchedLog.Txt?
>
> Also look at the Security tab while in "Properties". Are all needed
> permissions granted to run?
> Are the "Settings" set correctly?
> Also look in Explorer and right-click the BAT file itself and check that
> all permissions need to run are granted there.
>
> Bud Izen wrote:
>> I guess I am still not being sufficiently clear. The command (batch
>> file, called backup.bat) runs fine manually, either being called from
>> a shortcut on the desktop or from the command window directly. What
>> does NOT run fine is when I try to call the backup.bat batch file
>> from the Windows XP task scheduler (Control Panel, Scheduled Tasks).
>> I don't get any errors. In fact, when called, it actually says it is
>> running, but nothing is visible on the screen, the actual commands in
>> the batch file do NOT execute, and the task never terminates (it
>> should only take about three minutes to run). I sure hope this makes
>> my problem crystal clear.
>>
>>> I am not an old DOS user but my best guess is that there is a
>>> problem with the path.
>>> You said it runs OK but not from CMD window.
>>> Is the batch file in windows, system32 or root of OS drive?
>>> cmd.exe should run a bat file if it is in one of the above places or
>>> if you specify the path to the item you want to execute.
>>>
>>>
>>> "Bud Izen" <BudIzen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>> news:82FA2266-EE83-4210-9A71-312EBAECA630@xxxxxxxxxxxxxxxx
>>>> Thanks for the suggestion. I will certainly evaluate the program,
>>>> but I still would like to find a solution that is integrated into
>>>> the OS. Why doesn't the XP task scheduler handle batch files?
>>>> --
>>>> Bud Izen
>>>>
>>>>
>>>> "HappyUser" wrote:
>>>>
>>>>>
>>>>> "Bud Izen" <BudIzen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>>>> news:3B65874C-40AB-4951-960E-34B21FA5AF8B@xxxxxxxxxxxxxxxx
>>>>>> I want to automate the backup of our Retail Management Software
>>>>>> database file. The Partner who installed it wrote a batch file,
>>>>>> which works fine,
>>>>>> but
>>>>>> he put it in the Scheduler and it never runs. I did the obvious,
>>>>>> checked
>>>>>> for
>>>>>> correct user name and password, etc. The process kicks off, says
>>>>>> it is working, but never terminates and does not actually run the
>>>>>> batch file.
>>>>>>
>>>>>> I tried calling the batch file with cmd.exe, but that doesn't work
>>>>>> either.
>>>>>>
>>>>>> Any suggestions?
>>>>>>
>>>>>> --
>>>>>> Bud Izen
>>>>>
>>>>> Lacking other suggestions would you consider a $30.00 program?
>>>>>
>>>>> I have been using Second Copy since Win 98 days when it would do a
>>>>> complete
>>>>> backup of the OS.
>>>>> Still use it regularly for many automated tasks.
>>>>> Several options and also supports UNC.
>>>>>
>>>>> No connection to the product other than a happy user.
>>>>>
>>>>> http://www.centered.com/
>
> --
> Remove nospam in email
>


.



Relevant Pages

  • Re: batch question
    ... window at great speed, without being executed. ... all I want is for the command to work inside a command prompt window. ... Your original batch file had two lines. ... you fell into a well-known trap: you are not executing ping.exe ...
    (microsoft.public.windowsxp.general)
  • Re: Batch File Problem - Batch File Enclosed
    ... I have added a batch file to my Startup folder to execute whenever ... The batch file works ok but it leaves a blank command ... I would like close this window using the batch file ...
    (microsoft.public.windowsxp.general)
  • Re: Execute a batch file and wait for it to complete
    ... and until I manually close the console. ... Starts a separate window to run a specified program or command. ... If it is an internal cmd command or a batch file then ...
    (comp.lang.fortran)
  • Build instructions for loadcepc.exe
    ... Build instructions for loadcepc.exe ... a standard cmd.exe window. ... Execute the batch file setupenv.bat: ... command promt ...
    (microsoft.public.windowsce.platbuilder)
  • Build instructions for loadcepc.exe
    ... Build instructions for loadcepc.exe ... a standard cmd.exe window. ... Execute the batch file setupenv.bat: ... command promt ...
    (microsoft.public.windowsce.embedded)