I need to run c:\windows\system32\getmnac.exe from a .vbs file, and output that to C:\mac.txt for example. Anyone know how to do this?
From what I could find on the net, I've tried
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "C:\windows\system32\getmac.exe /nh >> c:\mac.txt"
This doesn't work.
Thanks.
