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

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

whats the exception you encounter?

There is nothing wrong with your code it works absolutely fine with me.

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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.