如何用VB建立快捷方式
今天图老师小编要跟大家分享如何用VB建立快捷方式,精心挑选的过程简单易学,喜欢的朋友一起来学习吧!
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->