I run three pc’s on a peer to peer basis, pc2 also has a 4 port usb hub. When I plug in a pendrive it is shared and can be accessed from pc1 and pc3. Take out the pendrive, then re-insert it. I then have to enable sharing again before it is once more recognised. Is there any way to keep the pen drive shared? Many thanks in advance
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Map pen drive (WXpHe)
Home » Forums » AskWoody support » Windows » Windows Vista, XP and earlier » Questions: Vista, XP back to 3.1 » Map pen drive (WXpHe)
- This topic has 29 replies, 7 voices, and was last updated 20 years, 11 months ago.
AuthorTopicWSStephenElms
AskWoody LoungerJuly 7, 2004 at 2:54 pm #407050Viewing 6 reply threadsAuthorReplies-
joep517
AskWoody MVP -
joep517
AskWoody MVP -
WSBruce K
AskWoody LoungerJuly 7, 2004 at 9:55 pm #848563Ahhh, good question, Stephen!
I am seeking an identical solution:
Client uses a 512 USB pen drive to back up essential files at the end of each work day. This is facilitated via a batch file. Seeking a means to map a drive to the USB drive so that when it is unplugged, it will show unavailable and show available when plugged in – just like a regular network drive. We want to keep the drive assigned to the same letter, you dig?
-
WSStuartR
AskWoody LoungerJuly 7, 2004 at 10:16 pm #848566If you want to assign a drive letter to your USB Pen drive then you can use Disk Management
- Install the USB drive
- Right click on my computer
- Select Manage
- Select Disk Management on the left pane
- Right click the partition where the USB drive is currently mapped
- Select “Change Drive Letter and Path”
- Choose a drive letter that you won’t use for other purposes
[/list]StuartR
-
WSBruce K
AskWoody LoungerJuly 7, 2004 at 10:55 pm #848572Hi, Stu ~
Unfortunately, this has already been tried and does not work. As soon as you unplug the USB pen drive, that drive letter is no longer assigned. Or if you remove another drive or device, then the next time you plug in the USB pen drive, the device will assume the next logical letter order assignment each time rather than the desired letter needed for sharing as in Stephen’s case or running a batch file in my case.
The drive needs to stay assigned just as would a mapped network drive. My notebook, for example, shows the drives existing but unavailable when I am not at work and subsequently available when jacked in.
I am thinking this may require a command line function along the lines of ‘net use’ + ‘persistent’, perhaps?
-
WSBruce K
AskWoody LoungerJuly 7, 2004 at 10:55 pm #848573Hi, Stu ~
Unfortunately, this has already been tried and does not work. As soon as you unplug the USB pen drive, that drive letter is no longer assigned. Or if you remove another drive or device, then the next time you plug in the USB pen drive, the device will assume the next logical letter order assignment each time rather than the desired letter needed for sharing as in Stephen’s case or running a batch file in my case.
The drive needs to stay assigned just as would a mapped network drive. My notebook, for example, shows the drives existing but unavailable when I am not at work and subsequently available when jacked in.
I am thinking this may require a command line function along the lines of ‘net use’ + ‘persistent’, perhaps?
-
DaveA
AskWoody_MVPJuly 8, 2004 at 12:25 am #848596I believe that is is per design. Each time a USB device is plugged it it appears as a new device and the OS will search for a driver and then assign a drive letter as needed. You will find that this will also happen to the cameras that are plugged in.
DaveA I am so far behind, I think I am First
Genealogy....confusing the dead and annoying the living -
WSbigaldoc
AskWoody LoungerJuly 8, 2004 at 1:06 pm #848838Weellll, I’m not too sure that’s 100% true. I have a universal SmartDisk USB reader that I have set the three drive letters to M, N and P. My CD (burner) is assigned K. I had my machine partially down for a few days while I worked on what turned out to be a dead CD burner. During that time the SmartDisk reader was not connected. The new burner I inserted is now on a PCI IDE card, so it understandably didn’t get re-assigned to K when I fired up. But when I was ready to button it up and put the covers back on, the SmartDisk reader DID get reassigned to my three chosen letters. By the way, there are unused letters above and below these ranges, and I have three hard disk partitions assigned to R, S and T. Go figure.
-
WSBruce K
AskWoody Lounger -
WSbigaldoc
AskWoody LoungerJuly 8, 2004 at 6:54 pm #849076I just used Disk Management to assign some letters in the upper alphabet just so it wouldn’t interfere with my partitioning of hard drives. Nothing else special and I never ever thought about something like disconnecting or whatever at the time I did it. When my new burner didn’t get the assigned letter is the only thing that caused me to notice.
-
WSBruce K
AskWoody LoungerJuly 8, 2004 at 8:32 pm #849090(Edited by mwolfman on 08-Jul-04 17:32. Asterisks in the subject.. again)
Hi, Al ~
This is originally how we tried to assign drive letters from ‘Disk Management’, but this will not work permanently for a USB flash drive unless you are using some accompanying software as Dave suggested.
If you remove a network drive or introduce a zip, hard, flash drive, etc. via USB, those drive letters are dynamically assigned by Windows (only in 2000 & XP). Yes, you may change them, but only for that session until it is pulled and once another device is introduced, moved or removed, the dynamic assignment is requeued.
I may have, however, discovered a way to permanently assign a USB flash device by mounting a local drive at an empty folder on an NTFS volume using a drive path instead of a drive letter. I have been playing around in Comp Mgmt and learned that each device is assigned a unique ID number based on some unique feature of the device. It seems to stick, is sharable and the folder is given a drive icon by Windows.
I need to do just a little more testing and trying to move, remove and bump drive letters to see if they will in fact remain static. If this works as imagined, this will suit both Stephen’s as well as my own needs.
I will report back with the results and details.
-
WSBruce K
AskWoody LoungerJuly 8, 2004 at 8:32 pm #849091(Edited by mwolfman on 08-Jul-04 17:32. Asterisks in the subject.. again)
Hi, Al ~
This is originally how we tried to assign drive letters from ‘Disk Management’, but this will not work permanently for a USB flash drive unless you are using some accompanying software as Dave suggested.
If you remove a network drive or introduce a zip, hard, flash drive, etc. via USB, those drive letters are dynamically assigned by Windows (only in 2000 & XP). Yes, you may change them, but only for that session until it is pulled and once another device is introduced, moved or removed, the dynamic assignment is requeued.
I may have, however, discovered a way to permanently assign a USB flash device by mounting a local drive at an empty folder on an NTFS volume using a drive path instead of a drive letter. I have been playing around in Comp Mgmt and learned that each device is assigned a unique ID number based on some unique feature of the device. It seems to stick, is sharable and the folder is given a drive icon by Windows.
I need to do just a little more testing and trying to move, remove and bump drive letters to see if they will in fact remain static. If this works as imagined, this will suit both Stephen’s as well as my own needs.
I will report back with the results and details.
-
WSbigaldoc
AskWoody LoungerJuly 8, 2004 at 6:54 pm #849077I just used Disk Management to assign some letters in the upper alphabet just so it wouldn’t interfere with my partitioning of hard drives. Nothing else special and I never ever thought about something like disconnecting or whatever at the time I did it. When my new burner didn’t get the assigned letter is the only thing that caused me to notice.
-
WSBruce K
AskWoody Lounger -
DaveA
AskWoody_MVPJuly 8, 2004 at 2:13 pm #848890Al,
I think you will find that the software that you have installed or was installed by the OEM is saving the settings. Since a memory stick plugged into a USB socket requires NO software just the XP drivers, then there is no software to save the settings with.DaveA I am so far behind, I think I am First
Genealogy....confusing the dead and annoying the living -
DaveA
AskWoody_MVPJuly 8, 2004 at 2:13 pm #848891Al,
I think you will find that the software that you have installed or was installed by the OEM is saving the settings. Since a memory stick plugged into a USB socket requires NO software just the XP drivers, then there is no software to save the settings with.DaveA I am so far behind, I think I am First
Genealogy....confusing the dead and annoying the living -
WSbigaldoc
AskWoody LoungerJuly 8, 2004 at 1:06 pm #848839Weellll, I’m not too sure that’s 100% true. I have a universal SmartDisk USB reader that I have set the three drive letters to M, N and P. My CD (burner) is assigned K. I had my machine partially down for a few days while I worked on what turned out to be a dead CD burner. During that time the SmartDisk reader was not connected. The new burner I inserted is now on a PCI IDE card, so it understandably didn’t get re-assigned to K when I fired up. But when I was ready to button it up and put the covers back on, the SmartDisk reader DID get reassigned to my three chosen letters. By the way, there are unused letters above and below these ranges, and I have three hard disk partitions assigned to R, S and T. Go figure.
-
-
-
DaveA
AskWoody_MVPJuly 8, 2004 at 12:25 am #848597I believe that is is per design. Each time a USB device is plugged it it appears as a new device and the OS will search for a driver and then assign a drive letter as needed. You will find that this will also happen to the cameras that are plugged in.
DaveA I am so far behind, I think I am First
Genealogy....confusing the dead and annoying the living -
WSWyllyWylly
AskWoody Lounger -
joep517
AskWoody MVPJuly 8, 2004 at 12:32 pm #848806I saw a few posts in one of the MS XP newsgroups (using Google to search) suggesting that a user create a folder and map to it with ‘reconnect at logon’ checked. The user was mapping to the root/default share and that was failing when the device was reconnected. Don’t have a device to experiment with so can’t be more definite.
Joe
--Joe
-
joep517
AskWoody MVPJuly 8, 2004 at 12:32 pm #848807I saw a few posts in one of the MS XP newsgroups (using Google to search) suggesting that a user create a folder and map to it with ‘reconnect at logon’ checked. The user was mapping to the root/default share and that was failing when the device was reconnected. Don’t have a device to experiment with so can’t be more definite.
Joe
--Joe
-
WSBruce K
AskWoody LoungerJuly 8, 2004 at 2:09 pm #848888Hi, Mark ~
Yes, I agree with you and Dave regarding the manner in which the USB devices are designed to work and know the ‘net use’ syntax is intended for networked drives.
My hope is that through discovery and/or ingenuity, perhaps there might be a way to trick the system into associating an assigned drive letter to the USB device through Windows itself, using some arcane command line functions in conjunction with the ‘net use’ syntax, or maybe even an ‘.INF’ file stored on the USB device…….
-
WSBruce K
AskWoody LoungerJuly 8, 2004 at 2:09 pm #848889Hi, Mark ~
Yes, I agree with you and Dave regarding the manner in which the USB devices are designed to work and know the ‘net use’ syntax is intended for networked drives.
My hope is that through discovery and/or ingenuity, perhaps there might be a way to trick the system into associating an assigned drive letter to the USB device through Windows itself, using some arcane command line functions in conjunction with the ‘net use’ syntax, or maybe even an ‘.INF’ file stored on the USB device…….
-
-
-
WSWyllyWylly
AskWoody Lounger
-
WSStuartR
AskWoody LoungerJuly 7, 2004 at 10:16 pm #848567If you want to assign a drive letter to your USB Pen drive then you can use Disk Management
- Install the USB drive
- Right click on my computer
- Select Manage
- Select Disk Management on the left pane
- Right click the partition where the USB drive is currently mapped
- Select “Change Drive Letter and Path”
- Choose a drive letter that you won’t use for other purposes
[/list]StuartR
WSBruce K
AskWoody LoungerJuly 9, 2004 at 10:36 pm #849482Hi, Stephen ~
After some very jejune as well as tedious testing w/ Win2K & XP locally & across the network, the solution I discovered works perfectly & will allow your pen or any flash drive to be statically assigned, recognized, & shared throughout your LAN or peer/peer setup.
The statements in my previous post standing accurate & noting that you must have at least one drive/partition fomatted NTFS, here are the steps to proceed:
- Disconnect any removeable media devices > restart Windows
- Connect your pen drive
- Right-click ‘My Computer’ > ‘Manage’
- ‘Computer Management’ > ‘Storage’ > ‘Disk Management’
- On the menu bar > ‘View’ > ‘Top’ > ‘Disk List’
- In the right-hand pane, right-click the appropriate drive under ‘Disk’
- Select ‘Change Drive Letter & Paths…’ > ‘Add’ (‘Change’/’Assign’ will NOT work statically for removeable devices)
- ‘Mount in the following empty NTFS folder:’ should be selected > ‘Browse’ button
- Volumes/partitions that are NTFS & support drive paths will appear here
- You may select any, but recommend the root drive which will typically be C:
- Click ‘New Folder’ > name it ‘USB Drive’ or similar > ‘OK’ > ‘OK’> exit ‘Computer Management’
- You will not see anything change in ‘Computer Management’ since it is a drive path & not a drive
- Open ‘My Computer’ > click ‘Local Disk (C:)’ or drive you selected above
- You will see a folder or a drive called ‘USB Drive’
- Right-click > ‘Properties’ > ‘Sharing’ tab > check ‘Share this folder on the network’
- Enter share name (recommend using the name of the drive folder but w/o spaces for command line net use syntax ease)
- On your pc1, go to ‘Start’ > ‘Run’ > enter cmd > ‘OK’
- Enter net use X: computernamesharenamedrivepathname /persistent:yes
- ‘X’ will be a drive letter you choose to represent the pen drive
- ‘computername’ is the name of the computer to which you wish to connect (which can be found in ‘My Computer’ properties)
- ‘sharename’ is the name of that computer’s drive that is being shared (which can be found on the ‘Sharing’ tab of ‘Local Disk (C:)’ or appropriate drive’s properties)
- ‘drivepathname’ is the name you designated in # 16 above (‘USB Drive’ or other)
- Example: net use P: backofficebruceusbdrive /persistent:yes
- Repeat this for your pc3[/list]
WSBruce K
AskWoody LoungerJuly 9, 2004 at 10:36 pm #849483Hi, Stephen ~
After some very jejune as well as tedious testing w/ Win2K & XP locally & across the network, the solution I discovered works perfectly & will allow your pen or any flash drive to be statically assigned, recognized, & shared throughout your LAN or peer/peer setup.
The statements in my previous post standing accurate & noting that you must have at least one drive/partition fomatted NTFS, here are the steps to proceed:
- Disconnect any removeable media devices > restart Windows
- Connect your pen drive
- Right-click ‘My Computer’ > ‘Manage’
- ‘Computer Management’ > ‘Storage’ > ‘Disk Management’
- On the menu bar > ‘View’ > ‘Top’ > ‘Disk List’
- In the right-hand pane, right-click the appropriate drive under ‘Disk’
- Select ‘Change Drive Letter & Paths…’ > ‘Add’ (‘Change’/’Assign’ will NOT work statically for removeable devices)
- ‘Mount in the following empty NTFS folder:’ should be selected > ‘Browse’ button
- Volumes/partitions that are NTFS & support drive paths will appear here
- You may select any, but recommend the root drive which will typically be C:
- Click ‘New Folder’ > name it ‘USB Drive’ or similar > ‘OK’ > ‘OK’> exit ‘Computer Management’
- You will not see anything change in ‘Computer Management’ since it is a drive path & not a drive
- Open ‘My Computer’ > click ‘Local Disk (C:)’ or drive you selected above
- You will see a folder or a drive called ‘USB Drive’
- Right-click > ‘Properties’ > ‘Sharing’ tab > check ‘Share this folder on the network’
- Enter share name (recommend using the name of the drive folder but w/o spaces for command line net use syntax ease)
- On your pc1, go to ‘Start’ > ‘Run’ > enter cmd > ‘OK’
- Enter net use X: computernamesharenamedrivepathname /persistent:yes
- ‘X’ will be a drive letter you choose to represent the pen drive
- ‘computername’ is the name of the computer to which you wish to connect (which can be found in ‘My Computer’ properties)
- ‘sharename’ is the name of that computer’s drive that is being shared (which can be found on the ‘Sharing’ tab of ‘Local Disk (C:)’ or appropriate drive’s properties)
- ‘drivepathname’ is the name you designated in # 16 above (‘USB Drive’ or other)
- Example: net use P: backofficebruceusbdrive /persistent:yes
- Repeat this for your pc3[/list]
WSBruce K
AskWoody LoungerJuly 9, 2004 at 11:03 pm #849484Hi, Stephen ~
Please note that when you reconnect your pen drive, your computer may still assign a new drive letter to it, but you simply disregard it as Windows still recognizes and will associate it with the drive folder you created.
In ‘My Computer’ > ‘Local Disk ©’ you will see your statically mounted drive folder ‘USB Drive’ that will have:
- a shared drive icon when the device is connected
- a shared folder icon when the device is disconnected
[/list]
If you try to connect from the other computers or your own to this mapped drive folder when the device is not connected, you will be greeted with ‘C:USB Drive refers to a drive that is unavailable…’ just like you would a normal unavailable mapped network drive.
We have clients who are lackadaisical about backups, bump media drives around, etc., so this has resulted as a perfect solution to get the essential database & accounting files backed up with unattended ‘.bat’ files & off the premises in the event of an unfortunate occurrence of some disaster.
If further clarification or questions are needed, please post back.
WSBruce K
AskWoody LoungerJuly 9, 2004 at 11:03 pm #849485Hi, Stephen ~
Please note that when you reconnect your pen drive, your computer may still assign a new drive letter to it, but you simply disregard it as Windows still recognizes and will associate it with the drive folder you created.
In ‘My Computer’ > ‘Local Disk ©’ you will see your statically mounted drive folder ‘USB Drive’ that will have:
- a shared drive icon when the device is connected
- a shared folder icon when the device is disconnected
[/list]
If you try to connect from the other computers or your own to this mapped drive folder when the device is not connected, you will be greeted with ‘C:USB Drive refers to a drive that is unavailable…’ just like you would a normal unavailable mapped network drive.
We have clients who are lackadaisical about backups, bump media drives around, etc., so this has resulted as a perfect solution to get the essential database & accounting files backed up with unattended ‘.bat’ files & off the premises in the event of an unfortunate occurrence of some disaster.
If further clarification or questions are needed, please post back.
Viewing 6 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Migrating from Windows 10 to Windows 11
by
Susan Bradley
3 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
9 hours, 45 minutes ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
1 hour, 15 minutes ago -
Plugged in 24-7
by
CWBillow
18 hours, 2 minutes ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
22 hours, 53 minutes ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
20 hours, 3 minutes ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
2 days, 14 hours ago -
Are Macs immune?
by
Susan Bradley
12 hours, 5 minutes ago -
HP Envy and the Function keys
by
CWBillow
1 day, 21 hours ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
1 hour, 36 minutes ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
3 days, 1 hour ago -
Unable to update to version 22h2
by
04om
9 hours, 48 minutes ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
3 days, 9 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
3 days, 9 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
2 days, 18 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
3 days, 22 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
3 days, 10 hours ago -
Is your battery draining?
by
Susan Bradley
10 hours, 26 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
10 hours, 26 minutes ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
4 days, 1 hour ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
4 hours, 11 minutes ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
3 days, 10 hours ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
3 days, 2 hours ago -
National scam day
by
Susan Bradley
2 days, 9 hours ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
3 days, 5 hours ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
5 days, 2 hours ago -
Tools to support internet discussions
by
Kathy Stevens
3 days, 15 hours ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
4 days, 18 hours ago -
AI is good sometimes
by
Susan Bradley
5 days, 10 hours ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
5 days ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.