PrivateDeclareFunctionfCreateShellLinkLib"STKIT432.DLL"(ByVallpstrFolderNameAsString,ByVallpstrLinkNameAsString,ByVallpstrLinkPathAsString,ByVallpstrLinkArgsAsString)AsLong
SubCommand1_Click()
DimlReturnAsLong
'添加到桌面
lReturn=fCreateShellLink("....Desktop","ShortcuttoCalculator","c:windowscalc.exe","")
'添加到程序組
lReturn=fCreateShellLink("","ShortcuttoCalculator","c:windowscalc.exe","")
'添加到啟動組
lReturn=fCreateShellLink("Startup","ShortcuttoCalculator","c:windowscalc.exe","")
EndSub->