Shortcut Target

d7e7r7

Executive Member
Joined
May 30, 2009
Messages
8,945
Reaction score
938
Location
Cape Town
Is there any way when making a shortcut to a file to have the shortcut target start with the drive letter the shortcut file is residing on?

Ok that sounds confusing but what I want to do is put a shortcut to a file (the file is in a subfolder of a subfolder of the flash drive) in the root of my flash drive. When I put the flash drive in different pc's the drive letter is not always the same and then it throws up the missing shortcut error if I define the shortcut to say E:\testfolder\testsubfoler\testfile.txt

So is there any symbol that one can use, in place of the drive letter, to make windows search for the file in the same drive as the shortcut file? :confused::confused::confused:
 
Maybe you could create a batchfile ie

shortcut.bat

Code:
cd testfolder\testsubfoler
testfile.txt
 
Maybe you could create a batchfile ie

shortcut.bat

Code:
cd testfolder\testsubfoler
testfile.txt

That's a god idea, thanks, didn't think of that.
What's the batch command to get the testfile.txt to open with a specific program (.exe) that is also in the testsubfolder?
 
That's a god idea, thanks, didn't think of that.
What's the batch command to get the testfile.txt to open with a specific program (.exe) that is also in the testsubfolder?

Depends on the programs command line options but typically:
Code:
cd testfolder\testsubfolder
program.exe testfile.txt
 
Top
Sign up to the MyBroadband newsletter
X