NAV 2009 RTC: Hang while calling FTP server

I have developed a function in NAV 2009 R2, which first creates a script with the FTP commands and then a CMD file which calls this script. Not very different from the script found here: techblog.byllemos.com/…/

Running the function in NAV 2009 Classic works fine. But when running the same function under NAV 2009 RTC, then the function is hanging upon calling the “Windows Script Host Object Model” function. It’s creating the script and command files ok, and if I execute the CMD file manually (on the NST machine), then it runs fine. So I don’t think that it’s the firewall (had that problem originally when I ran it on the classic client).

Do you have any idea what this could be?

Problem solved.

When I had the problem the location all the files created in, were on a shared drive and I was using the share name instead of the actual drive name, like //srv1/ftpfiles. When I changed this to E:/ftpfiles, then it worked fine.

So my guess that you cannot run the FTP with the command and script files on a share location. They have to be on a “physical” drive location.

Not exactly sure if this was the reason why it didn’t work, but it solved my problem.