| |
javra123
Posts: 2
Score: 0
Joined: 9/1/2008
Status: offline
|
I need to determine the MAC address of the computer and I used Wscript.shell but it generates errors like Permission denied Access denied I used the following code: <% Set objShell =CreateObject("WScript.Shell") Set objExecObject = objShell.Exec("%comspec% /c ipconfig.exe") Do Until objExecObject.StdOut.AtEndOfStream strLine = objExecObject.StdOut.ReadLine() strIP = InStr(strLine, "Address") If strIP <> 0 Then IPArray = Split(strLine, ":") strIPAddress = IPArray(1) End If Loop %> Can anyone suggest me any solutions?
|
|