Jump to content

Internet Shortcuts and Environmental Variables


rfpmfp

Recommended Posts

Hi everyone

I 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


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 :huh::lol:

++

Post edited. Don't insult other members.

--Zxian

Link to comment
Share on other sites

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 :huh::lol:

++

Post edited. Don't insult other members.

--Zxian

Thanks Delprat

You 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...