自己写个递归吧,直接在VBS调用这段就可以了:- Function Shortcut(Short_name,path_and_name) '为在桌面创建一个快捷方式
- strDesktop = WshShell.SpecialFolders("AllUsersDesktop") '在桌面创建一个快捷方式
- set oShellLink = WshShell.CreateShortcut(strDesktop & "\" & Short_name & ".lnk") '名称
- oShellLink.TargetPath = path_and_name '目标
- oShellLink.WindowStyle = 1 '窗口样式 1默认窗口激活,参数3最大化激活,参数7最小化
- oShellLink.Hotkey = "" '快捷键
- oShellLink.IconLocation = path_and_name & ",0" '第几个图标
- oShellLink.Description = Short_name '备注
- oShellLink.WorkingDirectory = left(path_and_name,InStrRev(path_and_name,"\")-1) '起始位置
- oShellLink.Arguments = "" '参数
- oShellLink.Save '保存
- End Function
复制代码
|