How to programmatically start a process and enter required user name and password

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Wilson
    New Member
    • Apr 2013
    • 1

    How to programmatically start a process and enter required user name and password

    Using C#, is it possible to programatically start an application and enter a required user name and password
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Really depends on what the application is and how it expects the credentials. Process.Start allows you to start an application with a security context of the specified credentials http://msdn.microsoft.com/en-us/library/sxf2saat.aspx. This may work for some applications.

    Comment

    • AceInfinity
      New Member
      • Apr 2013
      • 12

      #3
      The answer here would be undefined as it does depend on the application. We don't know at this point whether the credentials can be inputted via command line arguments or this is a window that pops up later in the lifetime of the application, expecting user input for the credentials.

      Comment

      Working...