View Single Post
  #3  
Old February 14th 15, 07:29 PM posted to microsoft.public.windowsxp.help_and_support
R.Wieser
external usenet poster
 
Posts: 1,302
Default Access an USB memory stick regardless of the driveletter it got ?

Hello JJ,

You mean volume GUID and not the volume label, right?


Well .... If I you're presenting me a choice I would take the volume-label,
as I can pick/change that one myself & fairly easily. :-)

It possible to uniquely refer a disk volume by its volume GUID, but
the GUID is random and will be different accross different PC.


Which than would just make it a more complex drive-letter, with the exact
same problem as I try to get rid of. :-\

Moreover, with volume GUID, you won't be able to get a list
of a directory contents.


Hmm... Thats certainly a party-pooper I'm afraid.

I googled and found a code-example to how to change the drive letter, which
I have not tested yet, but I already get the feeling that that will bump
into the same "admin activity" restrictions too ...

Thanks for the response though.

Regards,
Rudy Wieser


-- Origional message:
JJ schreef in berichtnieuws
...
On Sat, 14 Feb 2015 12:27:34 +0100, R.Wieser wrote:
Hello All,

I've got a USB memory stick whci I carry with me and plug in to

different
computers. Al of those systems standardly assign the first available

free
drive letter to it, which often differs between them. This means that I
have to figure out for each of those systems which drive letter my stick
got, and remember to use that one for as long as I'm on that computer --
only to rehash that process when I get to another one.

So, my question is: can I refer to the USB memory stick by something

else,
unique to the stick itself. Maybe the volume name ? I was thinking
something like :

\\{volume name}\path\file.ext

Remarks:
On the above computers I do not have the permissions to select a

persistant
drive letter for my stick (I'm a user on them, not an admin).

I also wrote a one-line batch file which first finds my stick, and than

uses
SUBST to make a symlink to the drive letter I want, but that means I

always
have to run that batchfile first. Also, when ejecting the stick the
SUBST'ed drive remains ...

Regards,
Rudy Wieser


You mean volume GUID and not the volume label, right?
It possible to uniquely refer a disk volume by its volume GUID, but the

GUID
is random and will be different accross different PC.
Moreover, with volume GUID, you won't be able to get a list of a directory
contents.




Ads