I want to open a command window on a remote machine. I'm using a tool called RCTRLX to launch remote process (very similar to PSEXEC) but I can't get it to display the actual window. The process is always launched hidden.
What do I need to do to have actually display the console window?
Code:If Not System.IO.File.Exists(My.Settings.RemoteExecuteLocation) Then MessageBox.Show("rctrlx.exe could not be found. Please check your settings.", "File not found", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Exit Sub Else Dim CommandWindowProc As Process = New Process With CommandWindowProc.StartInfo .CreateNoWindow = True .FileName = My.Settings.RemoteExecuteLocation .Arguments = Me.ComputerBeingScanned & " /i /s /app cmd.exe" .UseShellExecute = True .WindowStyle = ProcessWindowStyle.Normal .RedirectStandardOutput = False .RedirectStandardInput = False End With MsgBox(CommandWindowProc.StartInfo.Arguments.ToString) CommandWindowProc.Start() End If




Reply With Quote