How do I make a batch file that will open a file from a flash drive (i.e., with a changing drive letter)? Answered
I use PortableApps on my flash drive, and it displays an icon in the menu if there is an application in the PortableApps/whatever directory. Two programs that work off a flashdrive, though not optimized for portable use, are Inkscape and Eagle. Both programs, however, have numerous applications in their main directories, which all appear.
What I'm after is a batch file that I can compile to .exe that will open the main program applications. I know that I can just put START C:/directory/application.exe to open an application from a known location, but my flash drive might be anything from E: to L:, depending on where it's used. Is there a command or code that will open a file from the same drive that the batch file is in, regardless of the drive letter?