I am trying to use Attachmate from VFP9 but am having trouble with the syntax. The old MS FTP command I used was "get 'sys4.planning.S9vx.xrefchld(0)' c:\temp\Xrefchild.txt" to download the latest generation of the file, but the following code cannot find the file
#DEFINE rcASCII 0
#DEFINE rcSkip 8
LOCAL oFTP as Reflection.FTPoFtp = CreateObject("Reflection.FTP")
oFtp.Open("PLP403.sys.eds.com")
oFtp.SetCurrentDirectory("sys4.planning.S9vx.xrefchld")
oFtp.ReceiveFile("c:\temp\Xrefchild.txt", "sys4.planning.S9vx.xrefchld(0)", rcASCII, rcSkip)
oFtp.Close
oFtp = null
Any help would be greatly appreciated.ThanksPaul
#DEFINE rcASCII 0
#DEFINE rcSkip 8
LOCAL oFTP as Reflection.FTPoFtp = CreateObject("Reflection.FTP")
oFtp.Open("PLP403.sys.eds.com")
oFtp.SetCurrentDirectory("sys4.planning.S9vx.xrefchld")
oFtp.ReceiveFile("c:\temp\Xrefchild.txt", "sys4.planning.S9vx.xrefchld(0)", rcASCII, rcSkip)
oFtp.Close
oFtp = null
Any help would be greatly appreciated.ThanksPaul