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