Re: Scheduled tasks don't end



Sorry, I can see no test log. Furthermore it seems
you ran an invalid batch file. I added the line headers
"Line1" etc. to show you where each line starts. You
must, of course, remove these line headers! I attach
a copy of the batch file so that you can see what it
looks like. You may have to instruct your news reader
not to suppress the attachment.


"Bill" <stanton@xxxxxxx> wrote in message
news:n4I8h.1778$tM1.1578@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
As you can see from the "test log", I couldn't get the
bat file to run directly.

ShortTestJob.bat: ==========================
Line1 @echo off
Line2 echo %date% %time% Start of task > c:\test.log
Line3 echo User=%UserName%, Path=%path% >> c:\test.log
Line4 "c:\Program Files\WINZIP\WINZIP32.EXE /autorunjobfile"
"C:\BackUpJobs-WinZip\ShortTestJob.wjf"
Line5 1>>c:\test.log 2>>&1
Line6 echo ErrorLevel of winzip=%ErrorLevel% >> c:\test.log
Line7 echo %date% %time% End of task >> c:\test.log
======================================

Resulting test.log: ==========================
'Line5' is not recognized as an internal or external command,
operable program or batch file.
======================================

If I run it from "scheduled", I just get a DOS prompt
from the directory c:\Windows\system32> where the
scheduled job was:

C:\WINDOWS\system32\cmd.exe "c:\ShortTestJob.bat"
(fails with or without the quotes)





"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:OiRdfUSDHHA.3212@xxxxxxxxxxxxxxxxxxxxxxx
Fine. Now instead of invoking this command directly, invoke
the following batch file under the Task Scheduler:

Line1 @echo off
Line2 echo %date% %time% Start of task > c:\test.log
Line3 echo User=%UserName%, Path=%path% >> c:\test.log
Line4 "c:\Program Files\WINZIP\WINZIP32.EXE /autorunjobfile"
"C:\BackUpJobs-WinZip\Apps-1-Mon.wjf"
Line5 1>>c:\test.log 2>>&1
Line6 echo ErrorLevel of winzip=%ErrorLevel% >> c:\test.log
Line7 echo %date% %time% End of task >> c:\test.log

Schedule the job, then examine c:\test.log. I suspect that Winzip
starts but never ends because it is waiting for some user input.


"Bill" <stanton@xxxxxxx> wrote in message
news:fKu8h.1585$ql2.1406@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
C:\PROGRA~1\WINZIP\WINZIP32.EXE /autorunjobfile
"C:\BackUpJobs-WinZip\Apps-1-Mon.wjf"


"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:u6DVoyRDHHA.4464@xxxxxxxxxxxxxxxxxxxxxxx

"Bill" <stanton@xxxxxxx> wrote in message
news:tBt8h.1385$sf5.862@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Along with creating a WinZip backup job, I scheduled
the job to run at a specified day and time. As part of
the job creation, I, of course, run the job to insure that
it zips the correct files and that the resulting zip file is
as specified.

Then, to insure that the scheduled task is also in order
with proper password authority, etc., I "Run" the task.
The MS XP Home SP2 system shows the task "running",
but it never ends. The Winzip log shows no irregularities
when run directly, so there must be something amiss
with the task scheduler. All of the Norton tasks seem to
run okay, but like I said, the Winzip jobs don't end.

Prior to using Winzip for backups, I using Stomp's
BackUpMyPC on the same offending system with the
same results, i.e., the job simply never ends.

Any ideas what might be causing all of this???

Thanks,
Bill

You write "there must be something amiss with the
task scheduler". This is extremely unlikely. It is far
morel likely that there is something wrong with your
job, and this is what you should concentrate on.

As a first step, please post the exact command line
you're running with the Task Scheduler. Without this
line we can only guess where the problem lies.










begin 666 try.bat
M0&5C:&\@;V9F#0IE8VAO("5D871E)2 E=&EM924@4W1A<G0@;V8@=&%S:R ^
M(&,Z7'1E<W0N;&]G#0IE8VAO(%5S97(])55S97).86UE)2P@4&%T:#TE<&%T
M:"4@/CX@8SI<=&5S="YL;V<-"B)C.EQ0<F]G<F%M($9I;&5S7%=)3EI)4%Q7
M24Y:25 S,BY%6$4@+V%U=&]R=6YJ;V)F:6QE(B B0SI<0F%C:U5P2F]B<RU7
M:6Y::7!<07!P<RTQ+4UO;BYW:F8B(#$^/F,Z7'1E<W0N;&]G(" R/CXF,0T*
M96-H;R!%<G)O<DQE=F5L(&]F('=I;GII<#TE17)R;W),979E;"4@/CX@8SI<
M=&5S="YL;V<-"F5C:&\@)61A=&4E("5T:6UE)2!%;F0@;V8@=&%S:R ^/B!C
,.EQT97-T+FQO9PT*
`
end

.



Relevant Pages

  • Re: Scheduled tasks dont end
    ... I won't have access to the offending system until Tuesday ... I'll try the batch file then and post back. ... the following batch file under the Task Scheduler: ... I suspect that Winzip ...
    (microsoft.public.windowsxp.general)
  • Re: Scheduled tasks dont end
    ... corrected bat file in the morning. ... you ran an invalid batch file. ... the following batch file under the Task Scheduler: ... I suspect that Winzip ...
    (microsoft.public.windowsxp.general)
  • Re: How to sync time w/o proper permisisons
    ... Phillip Windell ... >> Event Source: W32Time ... >>> I don't believe the Task Scheduler will solve my problem. ... >>> batch file to my local drive to see if it would run from there. ...
    (microsoft.public.windows.server.sbs)
  • Re: How to prevent task scheduler from starting a program already running
    ... should I change that to the batch file you had mentioned originally ... @echo off ... Launch Outlook. ... In task scheduler, edit the current task (right-click, ...
    (microsoft.public.windowsxp.general)
  • Re: How to sync time w/o proper permisisons
    ... Your win2k and later desktops should be synchronizing to the domain ... The time service is now synchronizing the system time with the time source ... > I don't believe the Task Scheduler will solve my problem. ... > batch file to my local drive to see if it would run from there. ...
    (microsoft.public.windows.server.sbs)

Loading