FTP upload/download

sloorssloors Member Posts: 20
HI, i have a problem with a ftp file transfer. I want upload some text file on remote ftp server .
Is it possibile with navision 5.0 SP1?? :shock:
What is an automation Control for managment ftp transfer ( free )? :shock:

Thanks in advance.

P.S. Exuse me for my english, but i'm ITALIAN! :D:D :shock: :shock: :shock:

Comments

  • ta5ta5 Member Posts: 1,164
    Hi

    You have at least 3 possiblities:

    1) Start a Bat/Cmd-File with Shell-Command
    2)Use WindowsScriptingHost as Automation Variable
    3) There are shareware tools that can map ftp locations to a virtual drive letter. This way you just use a copy command to the virtual drive.

    Hope this helps.
    Thomas
  • sloorssloors Member Posts: 20
    THANKS THOMAS for your ready reply.


    Ok , i will follow the second street.
    What's a free automation that can i use?
  • ta5ta5 Member Posts: 1,164
    It's listed as "Windows Script Host Object Model" in the automation variable window.
    Regards
    Heinz
  • sloorssloors Member Posts: 20
    Sorry. :shock: :shock: :shock: but i don't have that object !!! :shock: :shock: :shock:

    Can you inidicate another object that work for ftp file transfer?

    Thanks In advance
  • andy76andy76 Member Posts: 616
    Hello,

    have you solved?
    Which is the better method?

    Thank you

    ps: Also I am Italian, in Switzerland for work.
  • MalajloMalajlo Member Posts: 294
    FTP is unfortunately not avaliable as dll.
    I'm using ncFTP (free, but you have to install it on server or client; MS ftp.exe has some issues on win2008)
    CREATE(WScript) ;
    WinSty := 1 ;
    waitRet := 1 ;
    Parameters :=  '"C:\Program Files\NcFTP\ncftpget.exe" ' +
          '-C -u anonymous -p unknown@whatever.com ' + URL + ' ' + ENVIRON('temp')+'\'+FileName ;
    RunStat := WScript.Run(PArameters,WinSty,waitRet) ;
    IF FORMAT(RunStat) <> '0' THEN ERROR(Error connecting ftp server '+URL+' or accessing file '+FileName);
    
  • MalajloMalajlo Member Posts: 294
    And variables...
    Name	DataType	Subtype	Length
    WScript	Automation	'Windows Script Host Object Model'.WshShell	
    WinSty	Variant		
    waitRet	Variant		
    RunStat	Variant		
    PArameters	Text		1024
    


    Misseed that you need to uplead files. Then use ncftpput http://www.ncftp.com/ncftp/doc/ncftpput.html
Sign In or Register to comment.