English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a system running a VB5 program, that deposits a sequential file to a remote server over a VPN. The OS is XP SP2. We map the remote drive at system startup. The problem is that the VPN will drop offline, sometimes for hours. The VPN is from another vendor, so I can't touch it. We can detect in VB that the network drive is gone, and store the data until the VPN comes back up. The problem is that when the VPN dies, XP declares the remote drive invalid, and continues to do so until the system is restarted. Can you shell from VB and re-map the drive without causing problems? Or is there a better way?

I know VB very well but mostly program Industrial control applications and know just enough about networks to be dangerous. Thanks.

2007-02-15 10:40:19 · 3 answers · asked by steve.c_50 6 in Computers & Internet Programming & Design

3 answers

Why don't you just call the DriveExists property on your network drive and see if it returns true or false?

Dim fso As New FileSystemObject

If fso.DriveExists( "D" ) Then
MsgBox "Drive D found"
End If

2007-02-15 14:12:51 · answer #1 · answered by Anonymous · 0 0

On our XP professional workstations, we can and subsequently map community drives as mandatory. the lack to ought to be configurable and thereby grant the mapping block. See your software supplier if no person inner is conscious of the thank you to unblock mapping.

2016-12-17 17:13:53 · answer #2 · answered by ? 4 · 0 0

check out http://www.pscode.com for great sample codes

2007-02-15 10:47:47 · answer #3 · answered by Richard H 7 · 0 1

fedest.com, questions and answers