XP / VB6 accessing network mapped drives after restart

G

Guest

My application writes a text data file to a folder on another computer. The
other computer is mapped by drive letter to the root (C) shared folder, eg as
G:. The network is simple peer2peer, shared root folders etc.

Immediately after restarting the application computer, and when my
application attempts to write to the mapped network computer G:, VB returns a
"network not accessible" error.

This error will persist until I open WinExplorer on the local computer and
click on the network drive letter G:. I then close Explorer and my
application will happily write to the remote folder on G: (until the computer
is restarted).

I overcome this in a very awkward manner, writing a script that opens the
network drive with the command "explorer \G"

Any assistance greatly appreciated.
Ian.
 
C

Chris

Ian said:
My application writes a text data file to a folder on another computer. The
other computer is mapped by drive letter to the root (C) shared folder, eg as
G:. The network is simple peer2peer, shared root folders etc.

Immediately after restarting the application computer, and when my
application attempts to write to the mapped network computer G:, VB returns a
"network not accessible" error.

This error will persist until I open WinExplorer on the local computer and
click on the network drive letter G:. I then close Explorer and my
application will happily write to the remote folder on G: (until the computer
is restarted).

I overcome this in a very awkward manner, writing a script that opens the
network drive with the command "explorer \G"

Any assistance greatly appreciated.
Ian.

Try using UNC naming convention

\\Server\Share\Filename

Otherwise you may want to post this in a VB6 newsgroup... This is a
..net group.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top