Absolute path woes
July 5, 2006 8:04 PM
Subscribe
Help me make my removable drive shortcuts not break when plugged into different computers!
I have a 5g iPod that I'm using part-time as a removable drive that I run a handful of portable apps off of. I put shortcuts in the top iPod directory ("Josh's iPod") to the different programs (which are in subdirectories within a directory on the iPod called "Portable Apps").
These shortcuts work fine as long as the iPod gets assigned to E:\, but whenever it gets assigned to a different drive letter (like F:\) they break. Is there something I can do to make my shortcut paths relative rather than absolute?
I'm thinking there's gotta be something like the %Userprofile% trick, maybe? Are there other relative paths other than that one? Google strips the %'s out of my searches!
posted by joshuaconner to computers & internet (8 comments total)
2 users marked this as a favorite
With windows xp, I think it is impossible to make a shortcut with a relative path.
One thing you can do is make a batch file with a single command which runs the app.
So, to run portable firefox sitting on your removable storage, make a text file named firefox.bat with this single line...
"\public\Portable Apps\PortableFirefox\PortableFirefox.exe"
You could also make a simple html page with relative links to all of your stuff which would work no matter what OS you wield.
posted by utsutsu at 8:56 PM on July 5, 2006