derek7467
asked on
vb.net and psexec
Attempting to launch an internet browser on a remote machine. Im having issues concating the arguments line, can someone help? If I don't specify a site to visit, the code works fine, but I want to pass a site to remotely launch.
IM having trouble on a similar script written in VB
IM having trouble on a similar script written in VB
Try
Dim targetpc As String = "192.168.1.3"
Dim internet As String = "http://cnn.com"
Dim p As New Process()
p.StartInfo.FileName = "C:\Users\king derek\Desktop\PSTools\psexec.exe"
p.StartInfo.Arguments = "\\" & targetpc & " " & Chr(34) & "C:\Program Files (x86)\Internet Explorer\iexplore.exe" & " " & "http://cnn.com"
p.Start()
p.StartInfo.CreateNoWindow = True
p.WaitForExit()
Catch ex As Exception
MsgBox("Shit didnt work")
End Try
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nevermind, i fixed!
ASKER
Open in new window