Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

Scheduling an exe (emoreau's example)

I've followed this code

http://emoreau.com/Entries/Articles/2008/11/Passing-arguments-to-an-application-startup.aspx

Method 2 of that link. I compiled and have an exe. I want to schedule it as a Service. Per that article, I need to pass a paramter '/batch' to have it run as a service...

When I'm in debug, I add the command line argument to "Debug" tab of properties. When I want to schedule the exe...where do I need to put the command line argument?

Thanks
SOLUTION
Avatar of Kent Dyer
Kent Dyer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
are you creating your task manually in the Windows "Task Scheduler"? If so, you can add your argument to name of the exe.

or you can create a batch file with that argument and launch the batch in the task
Avatar of Camillia

ASKER

I think I will use Windows Task Scheduler. I've never done this before tho. What do you mean adding it to the name of the exe?  I know if I right click on the exe, select "properties", there's a "Target" field and I can add the paramter to end of it. Is this what you mean?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i will look. I will keep this question open for now. Thanks for your help.