What is the most common external drive letter?
What is the most common external drive letter?
I know this topic is probably not the right place to post this, but it seems to get the most views/posts. I am trying to write a small program in BASIC in which it will be an interface to launch external apps from. It seems that to use the run command, I need to supply the absolute path of the progam to be run. My question is: what is the most common drive letter for users USB drive. (on home PC) Mine is E:\\
It sounds like a really bad idea to hard code the drive letter. I realize that this is a personal program for you but couldn't you make it so that the program either accepts a command line parameter for the drive letter, allows the drive letter to be set in an external configuration file or prompts the user for the drive letter. Once you have that, then you could simply generate a string of the full path with the appropriate drive letter.
From my point of view, all of the drive letters that you have specified are usually occupied.. I have two hard drive partitions C and D, and then two optical drives E and F, leaving G and beyond to assign to external drives.
From my point of view, all of the drive letters that you have specified are usually occupied.. I have two hard drive partitions C and D, and then two optical drives E and F, leaving G and beyond to assign to external drives.
yep, just put the app you want to launch in the launcher directory. If you're using VB to create the launcher, the command to launch the app should be like this:
Code: Select all
Shell App.Path & "\App_To_Run_Folder\EXE_File_To_Run.exe"
- teobromina
- Posts: 172
- Joined: Tue Jan 02, 2007 12:12 pm
- Location: Spain
Re: Please Answer
In that case I do not understand why there is no vote for "E" until now...jellyfish wrote:Mine is E:\\
OK. Mine is "E" as well. But my method is to use the Start/Administrative Tools / / Disk Administration Tool (translation to English may vary) to change the letters of my disks, thus preserving the "E" letter for my pendrive. For instance I use the letter "S" for the "Stock" partition, and so on.
*JT.
Why not create a small batch file that does the following:
subst z: .
it will create a Z: drive from the current relative path. If you place this in the root of your usbdrive, you can use it to create a Z: driveletter.
Another batch file with:
subst /d z:
will remove that link again.
I even found out, that in MS-Dos mode (or cmd) you can even link to 1: to 9: and in a batch file, you can run commands from there too. Only downside is: windows does not recognises these numberic driveletters at all, meaning that you cannot access the programs from there, but only execute them.
subst z: .
it will create a Z: drive from the current relative path. If you place this in the root of your usbdrive, you can use it to create a Z: driveletter.
Another batch file with:
subst /d z:
will remove that link again.
I even found out, that in MS-Dos mode (or cmd) you can even link to 1: to 9: and in a batch file, you can run commands from there too. Only downside is: windows does not recognises these numberic driveletters at all, meaning that you cannot access the programs from there, but only execute them.
- Geemonster
- Posts: 22
- Joined: Wed Mar 26, 2008 9:37 am
- Location: Norfolk
- Contact: