FTPGetFile problem with Space in File Name

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
TommyJ
Newbie
Posts: 11
Joined: Tue Sep 30, 2003 8:59 pm

FTPGetFile problem with Space in File Name

Post by TommyJ » Tue Jan 13, 2004 8:28 pm

MS Version 7.2.038e on Windows 2000, Excel '97

Here's my code...

let>savePath=H:\Report_RunnerTesting\
let>bondAddr=bm-prod.ext.us.bank-dns.com
let>rcPF_FTCIM=R1C2
DRQ>Excel,H:\PrintFiles.xls,%rcPF_FTCIM%,PF_FTCIM,10
ConCat>savePath,FTCIM.txt
FTPGetFile>%bondAddr%,FTC_FTP,***,21,%savePath%,%fLoc_FTCIM%,A

I get this error:

500 ' ': command not understood by Sidewinder proxy.

When I replace %fLoc_FTCIM% with
$1$DKA101:[FTCIM_REPORTS.PRINT.MISC]PRINT-01-09-04-012-NRW32
it works without a hitch.

I've checked the spreadsheet and there are no spaces in the cells... Can anyone tell me what is wrong with this?

TommyJ
Newbie
Posts: 11
Joined: Tue Sep 30, 2003 8:59 pm

Post by TommyJ » Tue Jan 13, 2004 10:20 pm

although i'm curious why the above didn't work, i've changed the code to use input from an ini file, now it works fine

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Re: FTPGetFile problem with Space in File Name

Post by support » Wed Jan 14, 2004 9:51 am

TommyJ wrote: let>savePath=H:\Report_RunnerTesting\
let>bondAddr=bm-prod.ext.us.bank-dns.com
let>rcPF_FTCIM=R1C2
DRQ>Excel,H:\PrintFiles.xls,%rcPF_FTCIM%,PF_FTCIM,10
ConCat>savePath,FTCIM.txt
FTPGetFile>%bondAddr%,FTC_FTP,***,21,%savePath%,%fLoc_FTCIM%,A
Well, fLoc_FTCOM doesn't exist anywhere in your code. You have a variable rcPF_FTCIM and PF_FTCIM but I see no fLoc_FTCIM, so I expect that was the problem.
MJT Net Support
[email protected]

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts