I need to trigger an executable file(built using .net) using the command prompt.
For example
c:> myfile.exe
But the executable which I have needs authentication.Is it possible to trigger the exe with username and password as parameters??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Scheduled tasks allow you to set a “Run as” property. You can set the windows user account and password there.
If your only concern is running it under a particular account, you can configure this when you create the scheduled task itself.
If your exe itself demands a user name and password, you will need to pass command line parameters.