Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote File Exists?
Message
 
 
To
18/09/2014 01:50:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01607766
Message ID:
01607770
Views:
48
>>What's the best way to see if a certain "Remote file Exists?" (in a folder such as /public_html/images)
>>Using HTTP or FTP or however else. Doesn't matter.
>>
>>Been working hard on writing code for WinINet to do the same thing. So far, I've got the ftp connection, changing folders, etc. all working.
>>But for the life of me, I can't figure out how to use the FtpFindFirstFile() function. Just not enough description or sample code to understand it.
>>
>>Any help would be greatly appreciated.
>>
>>Thanks.
>
>Cyrus, I have used the Chilkat controls for FTP (and other) work and (1) the products are great, (2) stable, (3) value for money, (4) detailed error reporting from the control, (5) great support and help, and most important (6) they give many examples in VFP. You would be up and running in 30 minutes or less with Chilkat because you can just copy/paste/amend their examples.
>
>A possible answer to you question is try and download the file and if it fails or returns nothing then the file does not exist. Is that an option?


You are absolutely right. I actually have their sFTP module, and love it. But that for some reason only allows 9 connections (file exists tries).
I was just thinking about getting their FTP module as well. I also have the West Wind wwStuff from Rick. Which is great as well.
But the wwFTP module in that package, has crashing issues running on couple Server 2012 systems.

Anyway I just got the WinINet code for Directory Listing to work. So, I am good.
Thanks a bunch.
Cyrus Nima
-------------------
cyrusnima@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform