Perl 创建 Windows 下的快捷方式

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/usr/bin/perl -w
use Win32::Shortcut;

$ApplicationName = 'c:/winnt/system32/notepad.exe';
$BaseName        = 'Notepad';

$lnk = new Win32::Shortcut();

$lnk->{'Path'} = $ApplicationName;
$lnk->{'Arguments'} = "";
$lnk->{'WorkingDirectory'} = ".";
$lnk->{'Description'} = "Launches application";
$lnk->{'ShowCmd'} = SW_SHOWNORMAL;

$lnk->Save( $BaseName . ".lnk" );
$lnk->Close();