Re: XP / VB6 accessing network mapped drives after restart

Tech-Archive recommends: Fix windows errors by optimizing your registry



Ian Murrell wrote:
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
.



Relevant Pages

  • Re: access denied in mapped drives
    ... I have a login script which ... maps a drive letter to a shared folder using the "Net Use" ... What permissions have you granted on a) the ...
    (microsoft.public.windowsxp.network_web)
  • Re: Reading a file from another machine on the network
    ... Either you've got access to the Share, then you can simply use the UNC ... Share to a drive letter or to have a look athttp://jcifs.samba.org;) ... I have to Map the shared folder on my system then use the drive name ...
    (comp.lang.java.programmer)
  • VFP7, Vista and FILE() problem
    ... I have a shared folder on a server mapped to a drive letter, ... FILEalways returns false on Vista with VFP 7 SP1 ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Re-assigned my jump drive?
    ... I tried removing it, restarting my ... Right click your drive and click "Change Drive Letter and ... Choose a drive letter ...
    (microsoft.public.windowsxp.accessibility)
  • Re: access denied in mapped drives
    ... command prompt on one of the XP machines. ... maps a drive letter to a shared folder using the "Net Use" ... What permissions have you granted on a) the ...
    (microsoft.public.windowsxp.network_web)