Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP rule and data card question

Status
Not open for further replies.

eyetry

Programmer
Oct 2, 2002
560
US
I need to log into the root of an ftp site and go to various directories accordingly. The basic ftp is no problem but I'm not sure how to approach the directory change. I'm away from the office so I can't try this until I get back. Can anyone confirm how these rules would change?

data card:

-t -a -url ftp://user:password@server/file.txt

(do I insert the dir between the server and file name like this? server/directory/file.txt)


Rule:

=PUT ("FTP", "-T -A -URL FTP://user:password@server " + SUBSTITUTE(GETFILENAME(BlobIn), GETDIRECTORY(BlobIn), ""), PACKAGE(BlobOut))

{this then would change to:
server " + directory + SUBSTITUTE(GETFILENAME(BlobIn), GETDIRECTORY(BlobIn), ""),
PACKAGE(BlobOut)) }

Let me know what you can. I'd like to script some of this out before I get back. Then it's cut and paste.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top