rfpmfp Posted October 24, 2006 Share Posted October 24, 2006 Hi everyoneI can't make Internet Shortcuts work with Environmental Variables."File:%MyVar%" (%MyVar% is an Environmental Variable giving the path to a drive or a file) works fine when pasted directly into Internet Explorer. But when set as the URL in an Internet Shortcut it sayes "Windows cannot find '%MyVar%', Make sure you typed the name correctly and then try again.." It doesn't make sense to me. Anything wrong with the syntax? Can anyone help?Thanks Link to comment Share on other sites More sharing options...
Delprat Posted October 24, 2006 Share Posted October 24, 2006 Anything wrong with the syntax?if i understood corectly, you're trying to create URL shortcuts with a target field containg an URI built on the form "file:%Var%" ????? Just create LNK shortcut with your %Var% in the target field.Alternatively, you can create a LNK shortcut to a local batch file that will create an URL shortcut containing the expanded value of %Var%. You can also go from New York to Chicago via Los Angeles, but that's really a long way...if i didn't understood correctly, good luck ++Post edited. Don't insult other members.--Zxian Link to comment Share on other sites More sharing options...
rfpmfp Posted October 25, 2006 Author Share Posted October 25, 2006 Anything wrong with the syntax?if i understood corectly, you're trying to create URL shortcuts with a target field containg an URI built on the form "file:%Var%" ????? Just create LNK shortcut with your %Var% in the target field.Alternatively, you can create a LNK shortcut to a local batch file that will create an URL shortcut containing the expanded value of %Var%. You can also go from New York to Chicago via Los Angeles, but that's really a long way...if i didn't understood correctly, good luck ++Post edited. Don't insult other members.--ZxianThanks DelpratYou got the problem rigth. But in this case I need to make a shortcut to a shortcut and that doesn't work unless the first shortcut is an Internet Shortcut. The first shortcut (the Internet Shortcut) contains the document ID (the first part of the file name) the second points to actual file (the valid version). It acts like a shortcut database. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now