sachinbs007
27th February 2009, 09:57
A new blog entry has been added:

FTP Issue.

FTP - from One server Location(Windows) to other server location of different platform (Unix)

   Hi

  I wanted to do the FTP of an flat file from Baan server to other ERP server.
Baan server is in Windows and Other ERP server is in Unix.
I have written an code for this which is given below.

 
function ftp.ascii.file()
{
            ret.code = app_start("cmd /c e:\int\export\Item\GEPS_CS_TASK_LINE.bat", "", "", "", "")
            app_status(ret.code)
            suspend(3000)

 
            if ret.code > 0 then
                        message("Success")
                        |process.error = seq.unlink(filepath)
            else
                        message("failed")
            endif
}

   At the given path I have an “ .bat” file which is pointing to an text file in which all the information related to server is saved from password to the path were to move the file and from were.
“.bat” file is getting trigger but the file is not getting transfer ,can any one tell were could be the issue in Code.

NPRao
27th February 2009, 20:44
If you are on the latest LN Tools, you can use the new FTP functions. Refer to the thread - Ftp (http://www.baanboard.com/baanboard/showthread.php?t=53937&highlight=ftp)