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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using strings for changing directories in FTP

Status
Not open for further replies.

Volkmaniac

Technical User
Mar 19, 2003
104
US
Are you allowed to use strings when you change directories in FTP mode? I've tried using strings but they haven't worked:

strfmt sDirectory "S:\Client Services\FASTDATA\%s\snt\RFIIXXX" sDope

FTP LOCAL CHDIR sDirectory

When that didn't work I tried

FTP LOCAL CHDIR "%s" sDirectory

That gave me an error

My next thought would be strfmt the whole line

strfmt sTransfer "FTP LOCAL CHDIR S:\Client Services\FASTDATA\%s\snt\RFIIAR2I" sDope (this formatting is wrong) but then I don't know how I'd transfer it. Any suggestions anyone might have would be very helpful.
 
I used your syntax and it worked fine for me. You might try a usermsg sDope or usermsg sDirectory to make sure they are set to the expected value.


aspect@aspectscripting.com
 
I'm not sure what's causing this problem. I changed my string names hoping that might do something.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top