Re: Scheduled tasks don't end



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.








.



Relevant Pages

  • Re: WinZip / Task Should I do this thru VBA in Access
    ... The task scheduler will do what you want but be careful it runs under the ... WinZip is based on some opensource code called Info-Zip ... > to make it execute a single command. ... > single macro that executes Winzip on the particular folder where the dbs ...
    (microsoft.public.access.modulesdaovba)
  • 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: Scheduled tasks dont end
    ... with the task scheduler. ... run okay, but like I said, the Winzip jobs don't end. ... Prior to using Winzip for backups, ... You write "there must be something amiss with the ...
    (microsoft.public.windowsxp.general)
  • Re: Scheduled tasks dont end
    ... with the task scheduler. ... run okay, but like I said, the Winzip jobs don't end. ... Prior to using Winzip for backups, ... You write "there must be something amiss with the ...
    (microsoft.public.windowsxp.general)
  • Re: Scheduled tasks dont end
    ... you ran an invalid batch file. ... "Line1" etc. to show you where each line starts. ... the following batch file under the Task Scheduler: ... I suspect that Winzip ...
    (microsoft.public.windowsxp.general)

Loading