读书人

2003注销脚本怎么编写

发布时间: 2012-01-15 22:57:48 作者: rapoo

2003注销脚本如何编写

我做了个登录脚本如下:gr.vbs
Dim net
Set net = CreateObject("WScript.Network")

' mapping net work drivers
net.MapNetworkDrive "L:", "\\223.223.2.251\grdx$","True"
net.MapNetworkDrive "M:", "\\223.223.2.251\gr$","True"
net.MapNetworkDrive "z:", "\\223.223.2.251\grtemp$","True"


' Create desktop shortcuts
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
Set link = Shell.CreateShortcut(DesktopPath & "\digicentury.lnk")
link.TargetPath = "http://www.xxxxx.com.cn"
link.WorkingDirectory = DesktopPath
link.Save


现想关机时注销它,如何写,要不然每次开机说盘符存在的提示。

2003我才刚用,不懂。


[解决办法]
关机时运行这个命令
net use * /del

读书人网 >windows

热点推荐