0

Hello,

How to run exe program from windows service using c#.
This is mycode:

System.Diagnostics.Process.Start(@"E:\PROJECT XL\INI SQLLOADER\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe");

When i run this service not happening. Please tell me whats wrong with my code. Thanks

2
Contributors
4
Replies
8
Views
6 Years
Discussion Span
Last Post by abelLazm
0

Your code is right just check that you have properly mentioned the path and file name

whats the exception you encounter?

0

Thanks for your answer.
I call the file consoleapplication2, where the file I do the SQL * Loader and I want to run the file with a schedule every 15 minutes

Your code is right just check that you have properly mentioned the path and file name

whats the exception you encounter?

0

What is the exception you are encountering in doing so?

You can add timer and set the interval to 900000 then enable it and in its tick function write your code in my opinion it have to work fine.... Please can you mention Error or Exception you are having

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.