That's the bunny :)

Thanks Frank,

Mik

On 08/11/05, Frank Nicholson <[EMAIL PROTECTED]> wrote:
Have the scheduler point to 'ftpscrpt.exe' (in the ws_ftp installed directory) and under command put '-f <scriptname>.scp'
 
Frank
 
 

Frank Nicholson
Production Control Developer
Electronic Network Systems
[EMAIL PROTECTED]
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mik F
Sent: Tuesday, November 08, 2005 1:24 PM
To: [email protected]
Subject: Re: [WS_FTP Forum] Scheduling a script?

Gary,

The script works fine; and some of th statement can be removed now I don't need to step through them. I was trying to use the built in "WS_FTP SCheduler" tool that is part of the 2006 Pro package but this only seems to allow scheduled transfers, eg not transfer then delet, or 'custom' which then looks for an executable.

Since the script file is a .scp file I can't point the scheduler at it.

I was rather hoping that this was me being dim but it rather looks like Ipswitch not coding two pieces of their application to work together.

Shame; otherwise its a good product but if I can't get this working it won't be worth upgrading.

Cheers,

Mik

On 08/11/05, Gary J. Piccoli < [EMAIL PROTECTED]> wrote:
I'm not an expert, but I think that the CD command you have should be LCD to change the local directory. I assume that the profile in the CONNECT statement has the proper usercode/password and home directory.
 
If you are scheduling this to run as a Windows Scheduled Task, make sure you have a "run as" that has admin privileges. 
 
Gary J. Piccoli
Colonial Computer Associates
Home of MuSoft 2000
-------Original Message-------
 
From: Mik F
Date: 11/08/05 06:32:33
Subject: [WS_FTP Forum] Scheduling a script?
 
Hi,
 
I've tried pposting this on the user forums but noone seems to a) use
them or b) have any idea whether I'm barking up the right tree or not.
 
Anyway; I'm trying here before uninstalling the product.
 
I have a simple script to transfer and then delete database backups
from the servers to a local machine:
 
TRACE D:\db backups\transfertrace.txt
LOG D:\db backups\transferlog.txt
CONNECT "DB Backups" -pL
CD D:\db backups
DIR *.gz
LABEL transfer
ONSUCCESS GOTO delete
ONERROR GOTO logoutMGET *.gz
LABEL delete
RDEL *.gz
LABEL logout
CLOSE
 
I was then hoping to b able to use the Scheduler to run this script
daily but I can't seem to be able to do this. Am I going about this
the wrong way?
 
Thanks,
 
Mik
--
Quis custodiet ipsos custodes?
 
to be removed from this list.
 
 
An Archive of this list is available at:







--
Quis custodiet ipsos custodes?



--
Quis custodiet ipsos custodes?

Reply via email to