Create Short Cut to EXE without path

1.8k views Asked by At

I need to create a short cut to internet explorer - iexplore.exe - passing it a URL. This is for an internal product that will only function in IE.

Normally I could just specify the "c:\program files\internet explorer\iexplore.exe" http://my.intranet.site

However, we are a mixed environment - Windows XP 32-Bit and Windows 7 32/64 Bit. The internal product only works with the 32 Bit versions of IE and we have alternative browsers installed on our PCs so simply giving the end users the URL on their desktop won't work either if they've changed their default browser.

Since iexplore.exe is part of the path, I have determined that from a command prompt I can simply type iexplore.exe http://my.intranet.site and it opens in all flavors of windows that we use without issue. But I can't create a short cut because the iexplore.exe doesn't have a path.

I found a vbscript and a powershell script that create LNK files, however they both append a C:\ at the front.

Any ideas?

1

There are 1 answers

0
Roger Pray On

In the end I created a .BAT file and turned it into an EXE.

The command line reads: start iexplore.exe [url]

Many of the other suggestions were helpful, but all seemed to wind up calling the 64Bit version on Win7 or a non-existent path on 32 Bit XP.

Thanks again.