Assign same drive letter for usb in different computers
Assign same drive letter for usb in different computers
I use Rocket Dock in my pendrive and would like to use it in different computers, the problem is that in each computer windows assign a different drive letter acordding to it's hardware.
I would like to have the same letter assigned to the pendrive plugging it to different computers. Is it possible to do this? Anyone have a suggestion or can help me?
I would like to have the same letter assigned to the pendrive plugging it to different computers. Is it possible to do this? Anyone have a suggestion or can help me?
If you use on the fly encryption such as TrueCrypt, you can have it assign the same drive letter each time. This of course assumes that the drive letter isn't already taken...
As for other methods, autorun.. etc. No, there is no way to set your drive up to automatically request a specific drive letter. Although you could write a script that would reassign the drive letter...
As for other methods, autorun.. etc. No, there is no way to set your drive up to automatically request a specific drive letter. Although you could write a script that would reassign the drive letter...
- Andrew Lee
- Posts: 3083
- Joined: Sat Feb 04, 2006 9:19 am
- Contact:
Two possibilities:
1. Use "subst". eg. if physical drive letter assigned is F:, but you like V:, you can use "subst v: f:".
2. This requires you to have admin access to all the machines. You can reassign the drive letter of the USB drive using Window's Disk Management tool on all the machines, then make sure you plug it into the same USB port every time. Might not be practical in some cases.
1. Use "subst". eg. if physical drive letter assigned is F:, but you like V:, you can use "subst v: f:".
2. This requires you to have admin access to all the machines. You can reassign the drive letter of the USB drive using Window's Disk Management tool on all the machines, then make sure you plug it into the same USB port every time. Might not be practical in some cases.
If you want to automate Andrew's approach somewhat, you can create a small batch file as follows.Andrew Lee wrote:Use "subst". eg. if physical drive letter assigned is F:, but you like V:, you can use "subst v: f:".
1. With Notepad (or other plaintext editor), create a file called USBon.cmd.
2. Type the following two lines in that file (replacing v: with whatever drive you want to assign to your USB drive) and save the file:
@echo off
subst v: %cd%
3. Place USBon.cmd in the root directory of your USB key drive.
Anytime you plug your USB key drive into a computer, just go to the root of the USB drive (whatever letter it is assigned) and double-click (execute) on USBon.cmd. That will create a working directory for your USB drive with the drive letter you chose in the script above. (Note that the drive letter assigned to the USB drive by the computer when you plugged it in will also still be visible. That's not a problem, just the way Windows works.)
When you unplug your USB key drive, the new drive letter will be inaccessible.
If you are fastidious and want to formally remove the substituted drive letter (instead of just uplugging your USB key drive), you can create another batch file called USBoff.cmd. Replace the second line of USBon.cmd with:
subst v: /D
Of course, you need to change v: to whatever drive letter you have chosen to assign to your USB key drive.
Double-clicking on USBoff.cmd while your USB key is still plugged in will manually remove the substituted drive letter. Your USB drive will still be accessible under whatever letter the host computer originally assigned. (BTW, this only works while your USB key drive is plugged in, because the USBoff.cmd batch file will not be accessible when the key is unplugged.)
Hope that helps.
-Yucca
Autorun.inf in root of Flash drive:degaa wrote:I like your solution, it's very good but I would like not to click on the USBon.cmd file. Is there a chance of making the pendrive to do itself automatic?
Code: Select all
[autorun]
action=Substitute USB Drive Letter
shellexecute=USBon.cmd
label=RocketDock Pen Drive
Code: Select all
shellexecute=nircmd.exe execmd CALL .\USBon.cmd
This won't execute 100% automatically though unless you have a U3 drive. Removeable drives do not autorun on Windows XP, you have to click the "Substitute USB Drive Letter" instruction (which will automatically pop up).
Not a problem.
If you want to start Rocket Dock automatically, just make USBOn.cmd read as follows:
Replace RocketDock.exe with whatever the name of the Rocket Dock executable is. Then change Autorun.inf to make more sense (Assumes you are using NirCmd):
If you want to start Rocket Dock automatically, just make USBOn.cmd read as follows:
Code: Select all
@echo off
subst v: %cd%
RocketDock.exe
exit
Code: Select all
[autorun]
action=Start Rocket Dock with drive letter V:
shellexecute=nircmd.exe execmd CALL .\USBon.cmd
label=Rocket Dock Pen Drive
Descriptive feedback.degaa wrote:Rocket Dock is not able to start itself with this code.
Error message?
Did you change RocketDock.exe to the Rocket Dock file path, like I told you to?
Anything is possible.degaa wrote:And I would like to know if its possible to write a script that could end all the process running into the pendrive.
http://www.google.com - Heard of it? I've tried to help you but you should also try to help yourself, all the information is out there.
RocketDock use relative paths
http://www.portablefreeware.com/?id=1149
http://tracker.punklabs.com/index.php?cmd=view&id=47
http://www.portablefreeware.com/?id=1149
http://tracker.punklabs.com/index.php?cmd=view&id=47
Now is working- How do end all process and disconect?
Now is working fine to connect, assign the lettter and start Rocket Dock automatically.
I would like to know it is possible do add some lines in the USBoff.cmd
to end all the process running in the device before disconnect.
I would like to know it is possible do add some lines in the USBoff.cmd
to end all the process running in the device before disconnect.