hi, trying to get the names of the computers connected on the network:
The file temp.txt does exist, but nothing is written to itCode:Option Explicit Dim wShell Set wShell = WScript.CreateObject("WScript.Shell") wShell.Run "net view>c:\new\temp.txt", 2,true Set wShell = Nothing
Anyone know why?
Thanks,
Amleto
edit:
got this to work:
Code:wShell.Run "cmd /c net view>c:\new\temp.txt", 2,true





Reply With Quote