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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript file object and Alias (shortcut) files. Bug, & read issue.

Status
Not open for further replies.

JRJohnston

Programmer
Sep 8, 2000
4
US
I would like to follow a link/shotrcut to the source file in VBScript.

First, note there is a bug in VBScript: for alias/shortcut files, the file attribute value does not include the specified bit corresponding to value of 1024. However, .Type returns "Shortcut". [.ReadAll returns only the letter "L", indicating that the other info is binary (?)]

Question: Is there any way to follow an alias/shortcut/link with the VBScript filesystem/file object?

Thanks
Jim Johnston

P.S. How does one write a search string to get an AND of the keywords?
(and, a mix of AND's and OR's?)
Thanks again,
JJ
 
If you're referring to determing the Target path of a Windows Shortcut (.LNK) file, AFAIK, there's no way to make that determination using the FSO.

The Shell object of WSH only exposes access to the Shortcut files via the CreateShortcut method, which is a PITA because you can't access existing shortcuts. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top