Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping An Internal Drive???

Status
Not open for further replies.

Perucho

Technical User
Nov 13, 2001
9
US
I am trying to map an internal Drive, for example:

c:\test to z:
When I restart the pc is ok, I get no error message.
My problem is that when I reboot the pc I get the windowns error message:

An error occurred while reconnecting ...
The network path was not found ...

I know is probably because is trying to look for that "Network Drive" (which is in the same pc "Internal Drive" in this case) but since the pc is rebooting it will not find it.
It makes sense!! :)

How can I go around this problem?
How can I get rid of this error message?


 
To get around it : enable sharing of c:\test, and
set permissions. Next, right-click My Computer and
Map Network Drive \\your computer\test. Check reconnect
at logon.
 
Sorry, I guess I should've been more explicit.

This is the scenario:
=====================

1. Computer Name: C500
2. Mapped Drive: d:\temp\test
3. Shared Folder: \\C500\test
4. Reconnect at logon is checked!
5. I am mapping a "Network Drive" from the same computer!


Error Message (only an example):
================================

nt4neth7.gif


Troubleshooting:
================

6. When the computer is on the network/domain, and I only "LOG OFF" the current user, I don't get the error message. But if I "RESTART" the pc I get the error message.

7. When the computer is not on the network (not on the Domain), and I "RESTART" the pc or "LOG OFF" the current user then I don't get the error message.

8. It seems to me that once the computer is configure to work on the network/domain, and I "RESTART" the pc, it starts getting the error message. Probably is trying to check itself in the "Browser Master" and it does not find itself because it is restarting!!!

9. is there something in the booting sequence that I have to change?

10. is there something in the register that I can change?

11. Do I have to change priorities in the "process load"? How would I do it?

12. Is it a bug? Is there a (microsoft) patch?

13. What is causing this error to pop up????

14. Any ideas/suggestions/comments I would appreciated...


Comments from other people:
===========================

15. Once the system sharing the resource is powered up, just use the mapped drive, the system will establish now the network connection.

Answer: The system (being itself) is restarting at this time!

16. Your system tried to re-establish the network connection, but failed, most probably because the other system is NOT switched on (if the other system is switched on, then there is a problem on the network setup or cabling).

Answer: The system (being itself) is restarting at this time!

-----

17. On Windows 95/98/ME ( it is slightly different on Windows NT4/2000) there is a nice feature:


reconct8.gif


18. How can I do this in Windows NT4/2000???

---
 
Ooopss,

* I forgot to include the drive that I am mapping to.
* All 3 are the same PC:

PC C500 PC C500 PC C500
--------- --------- ---------
d:\temp\test \\C500\test z:
This is the scenario:
=====================

1. Computer Name: C500
2. Shared Folder: \\C500\test
3. Directory to be Mapped: d:\temp\test
4. Mapped Drive: \\C500\test TO z:
5. Reconnect at logon is checked!
6. I am mapping a "Network Drive" from the same computer!

 
Have you tried using a batch file in the startup folder?

net use Z: \\C500\test

You would have to disconnect the "Windows" mapped drive first or you will get some error about resource already in use or something. A+, N+, MCP
 
I am still trying to "MAP A DRIVE TO A LOCAL SHARE"!!!!
=================================


Any other way to do it besides using the batch file?????

Registry settings??
Patch??
btw I'm using WinNT 4.0 Service Pack 5
Somewhere??
 
How about using the SUBST command and putting it in the STARTUP Group? Anyway, what's wrong with a batch file?


ROGER - GØAOZ.
 
There is nothing wrong with using batch files! :)

But I would think "WinNT" being a more robust OS than "Win95/98" would have a feature like Quick Logon:


reconct8.gif

Does WinNT has a "Quick Logon" feature????????
 
subst z: c:\test as proposed by GØAOZ is simple,
and it seems to work.
To map a local drive as a network drive is also
possible, but you may have to write the path if
browse is failing, and you must logon to a Windows
NT domain.
 
Net use will work fine for a share on the same machine. The problem you're getting is due to the order of services starting up. I believe the system connects to resources before sharing it's own. I'm pretty sure Win2000 does the equivalent of the "Quick Logon" by default.

You need also to remember that the core of NT was written before Win95. There are some quirek to NT's persistent connections. Drives connected through the Net Use command act differently than drives connected through Explorer's mapping system. We ran into this with notebooks coming up offline.

Build a batch file that can run from your Startup group. Hopefully the share will be activated before the batch file runs and you will be able to map the drive.
Jeff
I haven't lost my mind - I know it's backed up on tape somewhere ....
 
is it possible to run this as a "service'???

How would I do it so that it maps everytime the pc restarts/reboot??



Patience is a virtue!
 
So what is the reason for not using the SUBST command?
In WinNT just create a batch file and call the file form the System.ini.
Or am I missing something.
Regards Please provide feedback, good or bad.
And I'm always open to new suggestions or ideas.

Regards
 

I just want to know what are my options in solving this problem, and which one will be the best solution.

I got it to work with a batch file, but I needed it to put a sleep command for a few seconds to make it work!


:: Mapping Local Share
sleep 5
net use z: \\C500\test /persistent:no
:: end


Batch file is in the user startup folder(dir).


Any other ways of doing this?

How about as a service?

Quote: "Patience is a virtue"
 
Does this person sign on to a network and if so do they run a login script if so you could add the following command in their login script.

SUBST Z: C:\test

For Novell it would be
#SUBST Z: C:\Test

Otherwise you could use the batch file your using or create one using the SUBST command above (you wouldn't need the sleep) and then edit your System.ini file and next to run= give the path and name of the batch file.

Unfortunately I know of no other way. Please provide feedback, good or bad.
And I'm always open to new suggestions or ideas.

Regards
 
If you are determined to go the service route, then check out this article:
This describes User-Created services.

Best place to put the batch file command is in the registry under:
HKLM\Software\Microsoft\Windows\Current Version\Run
Create a new value with the data pointing to the batch file.

Ian Cowie
ianco@email.com

"If you see something THIS big, with eight legs, coming your way, let me know. I have to kill it before it develops language skills." - Londo, Babylon 5

    Anyhow, how can I help you, eh?
 

Thanks Guys! :)

All of the opinions/suggestions were very good. I have solved my problem, and I'm very thankful for that!

"Keep Up The Good Work"

Quote: "Patience is a virtue"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top