I think you'd do something like

Set WSHShell = CreateObject("WScript.Shell")
WSHShell.Run("net config server /hidden:yes ")

look on the MSDN library to be sure though.

-----Original Message-----
From: Morgan, Joshua [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 9:12 AM
To: NT 2000 Discussions
Subject: WSH and Command line


How do I call net commands from within  WSH?
Example:       net config server /hidden:yes 
To hide my machines from the network 

 
 
 
 
Joshua Morgan
PROFITLAB
Network Engineer
[EMAIL PROTECTED]

"One is glad to be of service "
--Robin Williams (Bicentennial Man)--


------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to