Novice Scripts Question.

K

Keith O'Connell

Hi,

If this is the wrong group for this type of question, then just point me to
where I should be, if not, I have a question which must have been
encountered before, so if I could have a little shared wisdom....

I have created a batch file which runs perfectly if clicked direct or from a
shortcut in the start menu. I created it because I wanted to run it as a
scheduled task at 04:00hrs.

However, when I run it the scripts runs only up to the completion of the
first zip file. What is it that am I unaware of that will stop a batch file
that works perfectly in normal use from working properly in scheduled use?
The batch file is included below
--

@ECHO OFF

C:
CD "C:\Documents and Settings\Keith\My Documents\Scripts"

REM Aragorn
"C:\Program Files\WinZip\wzzip" -u -Pr -Whs -Jhrs D:Backup_Aragorn.zip
@Backup_Aragorn.txt

REM Gimli
"C:\Program Files\WinZip\wzzip" -u -Pr -Whs -Jhrs D:Backup_Gimli zip
@Backup_Gimli.txt

REM Merry
"C:\Program Files\WinZip\wzzip" -u -Pr -Whs -Jhrs D:Backup_Merry.zip
@Backup_Merry.txt

REM Pipin
"C:\Program Files\WinZip\wzzip" -u -Pr -Whs -Jhrs D:Backup_Pipin.zip
@Backup_Pipin.txt

Keith
_____

Keith O'Connell.
Maidstone, Kent. (UK)
(e-mail address removed)
 
C

CWatters

Keith O'Connell said:
However, when I run it the scripts runs only up to the completion of the
first zip file.

I'm no expert but...

I believe when you call winzip (or any program) execution passes to that
program - and nothing passes it back to the script again "afterwards".

Try creating several seperate scripts and schedule these to run at different
times.
 
K

Keith O'Connell

Colin,

I am not sure how that applies when the script only fails when runs as a
time job and otherwise runs perfectly. What is it I am missing from your
message>

Keith.
 
T

Torgeir Bakken \(MVP\)

Keith said:
Hi,

If this is the wrong group for this type of question, then
just point me to where I should be,
Hi

A good newsgroup for this type of questions:
microsoft.public.win2000.cmdprompt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top