Hi everyone,
I was hoping someone here could provide me with an answer to the following problem:
I'm making a program from witch one could run an application with different credentials.
I can compile the program successfully, but when I press the button to run the program I get the following error:
The code behind the button is as follows:
Getlogin.exe does nothing but show the logged in username and run.bat utilizes the runas command.
I was hoping someone here could provide me with an answer to the following problem:
I'm making a program from witch one could run an application with different credentials.
I can compile the program successfully, but when I press the button to run the program I get the following error:
Unhandled exception has occurred in your application.
If you click Continue, the application will ignore this error and attempt to continue.
If you click Quit, the application will close immediately.
The system cannot find the specified file.
The code behind the button is as follows:
VB.NET:
Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
myProcess.StartInfo.FileName = "c:\run.bat /user:kreathyr c:\getlogin.exe"
myProcess.Start()
Getlogin.exe does nothing but show the logged in username and run.bat utilizes the runas command.
Last edited by a moderator: