Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
WshEnvironment Object
Item Property
Method: WshEnvironment.Remove
object.
Remove
strName
The
Remove
method deletes the environment variable with the specified name. If no such environment variable exists, a runtime error will be generated.
The following JScript code removes the System environment variable named "MyVar1".
Code:
Set objShell = WScript.CreateObject("WScript.Shell")
Set objSysEnv = objShell.Environment("SYSTEM")
objSysEnv.Remove("MyVar1")
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information