Re: Novice Script Question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Michael Bednarek (zo_at_gtz.pbz.nh)
Date: 12/20/04


Date: Mon, 20 Dec 2004 03:06:51 GMT

On Sun, 19 Dec 2004 16:36:51 -0000, "Keith O'Connell"
<kroc@blueyonder.co.uk> wrote in
microsoft.public.win2000.cmdprompt.admin:

>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
>--

(Don't use the sig separator in the middle of your message.)

[snip]
>"C:\Program Files\WinZip\wzzip" -u -Pr -Whs -Jhrs D:Backup_Aragorn.zip @Backup_Aragorn.txt
[snip]

Is D: a network drive? If so, you have to ensure that the scheduled job
has it mapped.

AFAIK there is no way of telling what the "current directory" on D:
might be when the scheduled job runs; specify a fully qualified
filename.

To debug, put a PAUSE command at the end (at least), run the scheduled
job "soon", and inspect the console output.

-- 
Michael Bednarek  http://mbednarek.com/  "POST NO BILLS"


Relevant Pages

  • Cygwin+OpenSSH on XP: Scheduled SFTP job fails - but manual runs fine
    ... Simple SFTP process (batch file) runs fine when launched from the ... Command Prompt and fails when launched by a Scheduler from Novell ... Scheduled job uses _exactly the same_ batch file ...
    (comp.security.ssh)
  • Batch file to fire Scheduled Job
    ... = 'DB Backup Job for DB Maintenance Plan ''TEST'''" ... >I am trying to write a batch file that can run a ... scheduled Job that is ... >command from a dos prompt, but, is there any command to ...
    (microsoft.public.sqlserver.server)
  • Schedule task from command line?
    ... inefficient. ... How can I create, using a batch file, a ... scheduled job which needs to run at system-boot time? ...
    (microsoft.public.win2000.general)
  • Batch file to fire Scheduled Job
    ... I am trying to write a batch file that can run a scheduled Job that is ... already written in SQL server. ... command from a dos prompt, but, is there any command to fire a scheduled ...
    (microsoft.public.sqlserver.server)
  • Re: Scheduled Task error code:The task completed with an exit code
    ... picked up a few advanced skills in batch file programming! ... if exist concatdate.txt del /q concatdate.txt ... You consistently fail to specify a drive and a path for your ... *** You must specify the exact file locations. ...
    (microsoft.public.windows.server.general)