Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shortcuts??? how to edit?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hi,
I have a shortcut that I need to edit...as a text file. This is not one of those clsid shortcuts, this is a regular shortcut.

I renamed it to .txt, so lets say it's shortcut.txt. I go to open in Notepad...but the target opens in notepad. What's driving this is that I need to deploy a shortcut onto multiple desktops. The target is a file I'm placing in their winsys directory. The problem is that some people's winsys is c:\windows\system32, some are c:\winnt\system32.

So...I haven't been able to figure out how to use the %winsys% environment variable in a shortcut. And when I edit the shortcut on *my* machine, to the alternate winsys, it says the target is invalid. Bottom line--all I want is the ability to actually save a shortcut that may, at the moment, not be valid. Is that so diffuclt for MS to allow? Does anyone know a simple way of either editing the actual .lnk file, or changing the shortcut? And, while making a 'dummy' folder that is valid might work, I'm really looking for a way to actually save the shortcut without that kludge.
Thanks,
--Jim
 
If you use environmental variables in the shortcut target, they get expanded when the shortcut is saved.

Make the shortcut target a .bat or .cmd file that uses environamental variables as the program path reference, rather than trying to do it all in the shortcut.


____________________________
Users Helping Users
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top