473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

XP / VB6 accessing network mapped drives after restart

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.

Nov 21 '05 #1
2 2839
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
Nov 21 '05 #2
Thanks Chris,
I suspected that may be the only way which I will need to try.
Ian

"Chris" wrote:
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

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Read Roberts | last post by:
I wrote my own directory browser in order to get around a bug where tkFileDialog.askdirectory() can't handle non-ascii paths. However, I have a problem where I call os.listdir() on a mapped...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
1
by: Z0gS | last post by:
I got this problem for the web application I try to access files on a remote server. string dirs = Directory.GetDirectories(@"E:\vehicles") E drive is a map to a network drive. I get the...
3
by: Bonj | last post by:
I have a service which is a Windows Service, but it is running under a User account - I enter my own credentials on installing. It can access network files by specifying the full UNC path, i.e....
0
by: Dennis | last post by:
I have tried to use the IWshRuntimeLibrary and ManagementObjectSearcher("SELECT * FROM Win32_LogicalDisk") to get all Logical Drives, Mapped Network Drives, Shared Folders and Shared Drives with...
0
by: dodger_web | last post by:
Hi, I want to setup a web server which runs IIS 6.0 + Asp.net 2.0 and windows services for unix 3.5. The asp.net is suposed to run localy, but requires files which reside on a nfs server. ...
24
by: =?Utf-8?B?QnJpYW4gTmljaG9sc29u?= | last post by:
Hello, I'm trying to create an admin page that can run miscellaneous scripts for our IT department. Currently, I'm trying to create a script that can map a network drive for a user (e.g. a form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.