Link to home
Start Free TrialLog in
Avatar of 2810
2810

asked on

Mapping local folder as new logical drive

Hi,

For some of my old code to work, I need a D: drive.
Unfortunately my new laptop only has one partition,
so I mapped the ABC folder on my C: drive(C:\ABC)
as a logical D: drive. My ABC folder is shared as ABC$
I am running XP.

I mapped network drive D: via explorer > tools > map network drive
using

\\127.0.0.1\ABC$

This works fine, I can access that drive correctly as long as my laptop is on the LAN.
When I disconnect the laptop from te LAN, and try to access the logical D: drive
I get :

"An error occurred while reconnecting D: to \\127.0.0.1\ABC$
Microsoft Windows Network : the local device name is already in use"

This probably has to do with my network bridge no longer being active..

I tried to solve my issue by selecting the "Make Available Offline"
option on the D: drive and synchronising, but still after disconnecting from
the LAN I get the the local device name is already in use error.

Any ideas?
2810

ASKER CERTIFIED SOLUTION
Avatar of joesinc
joesinc
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 2810
2810

ASKER


sorry for the late reply, work kept me busy :->
For the extra 25, could you also give me the command to disconnect the drive.
Thanks a lot,
2810
To delete a SUBST drive, type in:

SUBST X: /d

If you ever want to know syntax for any DOS command, just type in the command and a /?:

SUBST /?

This gives the following output:

Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

  drive1:        Specifies a virtual drive to which you want to assign a path.
  [drive2:]path  Specifies a physical drive and path you want to assign to
                 a virtual drive.
  /D             Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.






Hope this helps!

Regards,

Joe
Hey guys-

I am trying the same thing here, only the SUBST command seems to follow the old 8.3 file names.

I am entering the command: subst x: c:\program files\test

and I get: Incorrect number of parameters - files.  
Other "shorter" directories work fine.

I am trying to automate a directory update using a batch file and the receiving directory is
nested in the "Program files" folder.

Thanks in advance,

Lance
Simple, although if I were a nasty Expert I'd tell you to post your own question ;-)

A lot of dos commands cannot cope with spaces in file or folder names, so you use inverted commas to deal with the space. You typed:

 subst x: c:\program files\test

As far as the DOS command is concerned, the folder to SUBST is C:\program and you've passed files\test as another parameter.

 subst x: "c:\program files\test"

The inverted commas wrap up the whole C:\program files\test statement as one parameter. That is, SHIFT key and press number 2 (I'm assuming a UK keyboard, US keyboard it's SHIFT + apostrophe key I think). It isn't two apostrophes or anything like that.

Joe