cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

solarwinds wake on lan

Hi
 
I am using the free version of your product but when I try to use the library in my Access 2007 VBA it sends me an error message when sending the SendWOL command
 
Private Sub cmdWOL_Click()


    Dim objWOL As SWWakeOnLan.PC
   
    Dim myPath As String

   

    'Set objWOL = CreateObject("SWWakeOnLan.PC")

    Set objWOL = New SWWakeOnLan.PC
 
   
  '  myPath = "C:\Program Files\SolarWinds\Free Tools\WakeOnLan.exe"
   
   ' hProcess = Shell(myPath, vbNormalFocus)
 
 
   
    objWOL.MACAddress = Me.MAC
  '  MsgBox objWOL.MACAddress
   
    objWOL.TargetIPAddress = Me.IP
  '  MsgBox objWOL.TargetIPAddress
   
   
    objWOL.SendWOL

    Set objWOL = Nothing
End Sub
 
 
 
I am attaching the error message and the small program i am using in Access 2007
0 Kudos
0 Replies