I have an exe file (Console Application). In my ASP.Net I have a page that has a button. On the button click. I wanna start the console application.
Here is my code :
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.FileName = @"C:\PushNotificationSampleConsoleVersion\PushNotificationSampleConsoleVersion\bin\Release\PushNotificationSampleConsoleVersion.exe";
startinfo.CreateNoWindow = true;
startinfo.UseShellExecute = true;
Process myProcess = Process.Start(startinfo);
myProcess.Start();
When I click the button. nothing happened. I do not see the command prompt window. However when I check my task manager. I see the process started.
Any issue with my code ?
Thanks.