命令行形式写入收藏夹

来源:百度知道 编辑:UC知道 时间:2024/05/09 00:23:19
例如我要将 www.dnddt.com(只是举例) 在CMD模式下,把这个网址加入到收藏夹里,有相关的命令吗?? 系统高手来帮忙啊!

具体怎么写不懂,不过我知道一种思路:
用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