Link to home
Start Free TrialLog in
Avatar of jack niekerk
jack niekerkFlag for Netherlands

asked on

How to map a FTP adress to a driveletter in VB6

When I use this snippet wich I got from a other qst,  this will work fine on a internal IP adres on my Nas driev, but how to use this when I ' am outside,
and the Nas drive has a good working FTP connection
This is snippet for inside the office


Private Sub cmdMAP_Click()
    Dim WN
    DL = "S:"
    rp = "\\192.168.2.254\TOTALVERS"
    Set WN = CreateObject("WScript.Network")
    WN.MapNetworkDrive DL, rp
End Sub"


but when I do eg.
 rp = "ftp://jack@xx.xx.xx.x./TOTALVERS"
or
 rp = "ftp://jack@xx.xx.xx.x./"

I get error networkadress not supported

When I use explorer , making a new network connection it will work,
Thus the qst is , is it possible to make a connection to FTP this way, and then add a Drive letter to it?





ASKER CERTIFIED SOLUTION
Avatar of Antagony1960
Antagony1960

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jack niekerk

ASKER

Yes we have for 1 location VPN,  but some other users are not allowed to build a VPN connection, or can't ( mobile e.g.)
So we did buy as a substitute WEBDRIVE, problem with this is, that is  that it will not refresh allways the mapped drive,
Then I tried with shelled commandline in WEBDRIVE to disconnect and reconnect, but the loop time for that is to long
Avatar of Antagony1960
Antagony1960

Ah, well if WebDrive isn't working for you I'm not sure what will. I've never used it myself, but a friend of mine uses--and speaks very highly of--the LogMeIn Hamachi VPN manager. Perhaps you could use something like that to setup limited and secure VPN accounts.

https://secure.logmein.com/products/hamachi/vpn.asp
OK  will try that out
it looks like we must give everybody still a vpn capable router/modem