Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Regarding Wscript.shell

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,63965
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Regarding Wscript.shell
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Regarding Wscript.shell - 9/1/2008 9:11:12 PM   
  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?
 
 
Post #: 1
 
 RE: Regarding Wscript.shell - 9/9/2008 3:54:12 PM   
  TNO


Posts: 1285
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Is this your own server or is it managed by someone else? You may want to find out what permissions you are authorized by the Server Admin.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to javra123)
 
 
Post #: 2
 
 RE: Regarding Wscript.shell - 9/9/2008 4:12:07 PM   
  javra123

 

Posts: 2
Score: 0
Joined: 9/1/2008
Status: offline
NO i am using my own server and i have provided full permission but still not working.

(in reply to TNO)
 
 
Post #: 3
 
 RE: Regarding Wscript.shell - 9/10/2008 1:52:13 PM   
  TNO


Posts: 1285
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Take a look at this: http://www.webdeveloper.com/forum/showthread.php?t=80735

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to javra123)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Regarding Wscript.shell Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts