命令行形式写入收藏夹
来源:百度知道 编辑:UC知道 时间:2024/05/09 00:23:19
具体怎么写不懂,不过我知道一种思路:
用DOS在C:\Documents and Settings\XXX\Favorites\文件夹下建一个快捷方式,指向你要的地址。
刚搜索了一下,DOS下好像不能建快捷方式。。。
Rem =============================================
Rem 文件名:CreateShortCut2Desktop.vbs
Rem 添加程序、文件夹、网站的快捷方式到桌面的示例小程序
Rem =============================================
Rem 初始化
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
Rem 添加 Foxmail 的快捷方式到桌面
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Foxmail.lnk")
Rem oShellLink.TargetPath = WScript.ScriptFullName
oShellLink.TargetPath = "D:\programs\Foxmail5\Foxmail.exe"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = ""
oShellLink.IconLocation = "D:\pro