LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

getnextfile()

is GetFristFile() works only with directory path or it can also support url like ftp://10.10.12.13/

i need to retrive filename available inside the folder reports which is under url path ftp://10.10.12.13/reports/

 

0 Kudos
Message 1 of 7
(3,755 Views)

I'm pretty sure it cannot directly support the FTP url syntax. If your program could map the remote drive to a local drive letter, though, then this approach would definitely work. (You could try something along the lines of: system ("net.exe use z: ...") to generate a drive mapping within your CVI program. Sorry I don't know the details of the associated syntax - I'm on the wrong PC!)

 

JR

0 Kudos
Message 2 of 7
(3,754 Views)
I guess the suggestion of JR is the way to go: Windows provides the possibility to map network drives to a drive name, i.e. you could map a remote drive to 'Z:'; this has to be done in Windows; subsequently, you can access this drive as any other drive using the usual syntax.
0 Kudos
Message 3 of 7
(3,748 Views)
is their any other way to read the filename available inside the ftp server. i tried mapping the ftp network drive and dont know how to proceed further also i feel its bit tough job.
or else pls give me suggestion, to copy n number of files from ftp remote server to local system.
0 Kudos
Message 4 of 7
(3,737 Views)
Another possibility is to use the function InetFTPGetDirList which returns the list of files in the current directory on the FTP server.
0 Kudos
Message 5 of 7
(3,732 Views)

but when i was trying with InetFTPGetDir i am getting System socket error, i tried with ftpclnt.cws project in that also i am getting socket error...

my setup connection is correct dont know wr the real problem.... help me in solving this........

0 Kudos
Message 6 of 7
(3,729 Views)

raj,

 

It's difficult for others to remember what you might have tried earlier: the current post was about using getnextfile; the answer was: you can probably use it if you manage to map your network drive.

 

so if this question is solved, you should mark the current thread as solved and start a new one, with an adapted, meaningful title. This makes life a tiny little bit easier 🙂

0 Kudos
Message 7 of 7
(3,723 Views)