Results 1 to 3 of 3

Thread: [RESOLVED] Start remote console window

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2006
    Posts
    746

    Resolved [RESOLVED] Start remote console window

    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
    ManagePC - the all-in-one PC management and inventory tool

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Start remote console window

    .CreateNoWindow = True???

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2006
    Posts
    746

    Re: Start remote console window

    Oh FFS, I'm such an idiot.
    ManagePC - the all-in-one PC management and inventory tool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width