lnk files?

  • Thread starter Thread starter inkleputDEL
  • Start date Start date
A couple of ways to do this include using the CreateShortcut method of
VBScript. Or try Marty List's cool tool Shortcut v. 1.11
http://optimumx.com/download/#Shortcut

This VBScript would create a shortcut to a mapped drive 'S:\'
--------------------------
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("AllUsersDesktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\S Drive.lnk")
oShellLink.TargetPath = "S:\"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "explorer.exe, 1"
oShellLink.Description = "Network S Drive"
oShellLink.WorkingDirectory = "S:\"
oShellLink.Save
Set WshShell = Nothing
Set oShellLink = Nothing
--------------------------


Also WSH 5.6 documentation download at
http://www.microsoft.com/downloads/...48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en



--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
 
on 02/11/07 said:
A couple of ways to do this include using the CreateShortcut method of
VBScript. Or try Marty List's cool tool Shortcut v. 1.11
http://optimumx.com/download/#Shortcut

Thanks, but all I wanted was to know what a .lnk is - in a dummy level
nutshell. I've had copy/paste give me a .lnk instead of the file or
folder I was after. TweakUI offers a way to change something from .lnk to
something else. I don't have a clue what it's about.


JimL

--
 
It's a shortcut pointer to an .exe file ... gonna guess that .lnk is short
for "link"...maybe.


| In <[email protected]>, on 02/11/07
| at 11:26 AM, "Dave Patrick" <[email protected]> said:
|
| >A couple of ways to do this include using the CreateShortcut method of
| >VBScript. Or try Marty List's cool tool Shortcut v. 1.11
| >http://optimumx.com/download/#Shortcut
|
| Thanks, but all I wanted was to know what a .lnk is - in a dummy level
| nutshell. I've had copy/paste give me a .lnk instead of the file or
| folder I was after. TweakUI offers a way to change something from .lnk to
| something else. I don't have a clue what it's about.
|
|
| JimL
|
| --
|
 
A .lnk file is a shortcut.

---------------------------
Report Class Name
---------------------------
File Extension .lnk
File Class lnkfile
File Description Shortcut

File class is set not to appear in the File Types dialog box.
---------------------------

The .lnk extension is super hidden and normally does not appear
(NeverShowExt).

[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
"NeverShowExt"=""

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top