using drive label instead of letter

how to access usb by label instead of drive letter
RoyDBairdAsked:
Who is Participating?
 
RoyDBairdConnect With a Mentor Author Commented:
I ended up writing a 2 line script to get the current drive letter and start the program from there.

Thanks,
0
 
Ady FootSharePoint ConsultantCommented:
In what context?  You can mount the external USB drive as a path instead of a drive letter.  Look at this guide:
http://www.mydigitallife.info/2008/02/19/how-to-mount-and-access-new-partition-volume-or-drive-as-folder-path-in-windows/
0
 
RoyDBairdAuthor Commented:
Sorry, I hit the Enter key too soon.
I have an application that runs from a USB.

What I want to do is be able to have a shortcut or script that will run that application, but for a shortcut I need the drive letter, which as we all know, could be anything from A-Z.  I have not seen a method to use the drive name, (which I set in the autorun.inf) as the path.  The solution cannot include any steps for the user.  Must all be automated.  I may have to write a script that the shortcut runs that in turn runs the application.  Maybe the script can get the drive letter and substitute it in a string that executes the applicaiton.

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Ady FootSharePoint ConsultantCommented:
Sorry but I really don't know anything about achieving what you're asking...
0
 
David Johnson, CD, MVPOwnerCommented:
fyi microsoft has disabled autorun in writeable  media i.e. flash drives
0
 
pony10usCommented:
I am not sure if this covers what you asked but take a look at:  http://www.samlogic.net/articles/autorun-usb-flash-drive.htm

0
 
RoyDBairdAuthor Commented:
wrote a small script
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.