Jump to content

MAP network drive here.


brian873

Recommended Posts

To add the function mapping a network drive to your current network location with a right click [similar to open command window here] use the attached registry file or create your own with the code below.

The major probem with this is that after the first mapping you need to delete the network drive before you can map to another location. This for me is not a big problem as I use it for temporary jobs so it works fine for me. But could cause problems for others.

If you want to change the drive letter used change the [i:] in the "net use I: %1" statement to whatever free drive letter you have available.

Thanks to the help from mattofak and prathapml

hail hail

--start Netdrive.reg--------------

Windows Registry Editor Version 5.00

;----- Get a new Right-click menu option (command box)

[HKEY_CLASSES_ROOT\Directory\shell\Map Drive Here]

@="Network Drive Here"

[HKEY_CLASSES_ROOT\Directory\shell\Map Drive Here\command]

@="net use I: %1"

[HKEY_CLASSES_ROOT\Directory\shell\Map Drive DELETE]

@="Network Drive DELETE"

[HKEY_CLASSES_ROOT\Directory\shell\Map Drive DELETE\command]

@="net use I: /delete /y"

--end Netdrive.reg--------------

mapnetdrive.reg

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...