更改
实现代码如下:

Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Environment("user").Item("path")="c:\ruby"

移除:
实现代码如下:

WshShell.Environment("USER").Remove("LAST_LOGIN_DATE")

附记一下这两个:
实现代码如下:

Set objAD = CreateObject("ADSystemInfo")
Wscript.Echo "Your Computer Name is " & objAD.ComputerName
Wscript.Echo "Your Username is " & objAD.UserName
WScript.Echo("Hello")
WScript.Interactive = false
WScript.Echo("This wont display")
WScript.Interactive = true
WScript.Echo("This will display")

以上就是【vbs 更改环境变量】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)

与本文相关的软件

发表我的评论

最新评论

  1. 暂无评论