Click here to Skip to main content
15,920,030 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionActive Window Pin
szevy_suez5-Jul-06 5:35
szevy_suez5-Jul-06 5:35 
AnswerRe: Active Window Pin
Dave Kreskowiak5-Jul-06 5:59
mveDave Kreskowiak5-Jul-06 5:59 
Questionscan the picture and print Pin
muhsyed05-Jul-06 3:18
muhsyed05-Jul-06 3:18 
AnswerRe: scan the picture and print Pin
Dave Kreskowiak5-Jul-06 4:22
mveDave Kreskowiak5-Jul-06 4:22 
AnswerRe: scan the picture and print Pin
Vasudevan Deepak Kumar5-Jul-06 19:26
Vasudevan Deepak Kumar5-Jul-06 19:26 
QuestionExecute EXE Pin
nitin_ion5-Jul-06 1:06
nitin_ion5-Jul-06 1:06 
AnswerRe: Execute EXE Pin
Dave Kreskowiak5-Jul-06 1:30
mveDave Kreskowiak5-Jul-06 1:30 
GeneralRe: Execute EXE Pin
nitin_ion5-Jul-06 18:54
nitin_ion5-Jul-06 18:54 
I am using this code and trying to run the calc.exe
But calculator starts on my local system and not on that system also when i try to reboot the same system it does reboot.

Any help is appereciated

Dim co As ConnectionOptions = New ConnectionOptions
co.Username = UserID
co.Password = Password
Dim processClass As New ManagementClass("Win32_Process")

Dim ms As System.Management.ManagementScope = New System.Management.ManagementScope("\\IP\root\cimv2", co)
'Query remote computer across the connection
Dim oq As System.Management.ObjectQuery = New System.Management.ObjectQuery("SELECT * FROM Win32_Process")
Dim query1 As ManagementObjectSearcher = New ManagementObjectSearcher(ms, oq)
'Dim queryCollection1 As ManagementObjectCollection = query1.Get
Dim inParams As ManagementBaseObject = processClass.GetMethodParameters("Create")

' Fill in input parameter values
inParams("CommandLine") = "calc.exe"
Dim outParams As ManagementBaseObject = processClass.InvokeMethod("Create", inParams, Nothing)
GeneralRe: Execute EXE Pin
Dave Kreskowiak6-Jul-06 2:22
mveDave Kreskowiak6-Jul-06 2:22 
GeneralRe: Execute EXE Pin
nitin_ion6-Jul-06 2:24
nitin_ion6-Jul-06 2:24 
GeneralRe: Execute EXE Pin
Dave Kreskowiak6-Jul-06 2:34
mveDave Kreskowiak6-Jul-06 2:34 
GeneralRe: Execute EXE Pin
nitin_ion6-Jul-06 17:23
nitin_ion6-Jul-06 17:23 
GeneralRe: Execute EXE Pin
Dave Kreskowiak7-Jul-06 2:01
mveDave Kreskowiak7-Jul-06 2:01 
QuestionControlling other windows from VB.NET application Pin
seamie5-Jul-06 1:03
seamie5-Jul-06 1:03 
AnswerRe: Controlling other windows from VB.NET application Pin
Dave Kreskowiak5-Jul-06 1:34
mveDave Kreskowiak5-Jul-06 1:34 
GeneralRe: Controlling other windows from VB.NET application Pin
seamie5-Jul-06 2:53
seamie5-Jul-06 2:53 
QuestionRe: Controlling other windows from VB.NET application Pin
mr_lasseter5-Jul-06 7:33
mr_lasseter5-Jul-06 7:33 
AnswerRe: Controlling other windows from VB.NET application Pin
Dave Kreskowiak5-Jul-06 8:18
mveDave Kreskowiak5-Jul-06 8:18 
Questiondiffrence between vb exe file and other Pin
zon_cpp5-Jul-06 0:46
zon_cpp5-Jul-06 0:46 
AnswerRe: diffrence between vb exe file and other Pin
Dave Kreskowiak5-Jul-06 1:36
mveDave Kreskowiak5-Jul-06 1:36 
GeneralRe: diffrence between vb exe file and other Pin
zon_cpp5-Jul-06 2:08
zon_cpp5-Jul-06 2:08 
GeneralRe: diffrence between vb exe file and other Pin
Dave Kreskowiak5-Jul-06 2:56
mveDave Kreskowiak5-Jul-06 2:56 
Questionhow to deal with point data? Pin
codeadair4-Jul-06 22:18
codeadair4-Jul-06 22:18 
AnswerRe: how to deal with point data? Pin
Dave Kreskowiak5-Jul-06 1:39
mveDave Kreskowiak5-Jul-06 1:39 
AnswerRe: how to deal with point data? Pin
Jun Du5-Jul-06 4:42
Jun Du5-Jul-06 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.