, WSH, .lnk windows post-XP. COM WScript.Shell Component. (, explorer.exe)
, . PHP: (PHP 5, COM-)
<?php
$wsh=new COM('WScript.Shell');
$lnk=$wsh->CreateShortcut('./Shortcut.lnk');
echo $lnk->TargetPath,"\n";
, , VBScript:
set sh = WScript.CreateObject("WScript.Shell")
set lnk = sh.CreateShortcut("./Shortcut.lnk")
MsgBox lnk.TargetPath
VB/VBS, , COM WSH .
This simple tutorial is useful because it lists and illustrates some of the most interesting properties of.lnkthe file that is different from the most important:TargetPath. It:
WindowStyle,Hotkey,IconLocation,Description,WorkingDirectory
source
share