Setting specified user when executing a console app

WellsCarrie

Well-known member
Joined
Jul 12, 2005
Messages
95
Location
Arkansas
Programming Experience
5-10
How does one go about setting the Account under which a console app runs and still allow any network account to start it? Is this even possible?

I need to have my console app run as a specified user but the app will be started by a web service. The application automates the FTPing and extraction of a ZIP file and loads the contents of the extracted files into a database.
 
Look to ProcessStartInfo Members; LoadUserProfile + Password + UserName.
 

Latest posts

Back
Top