Camillia
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i will look. I will keep this question open for now. Thanks for your help.
or you can create a batch file with that argument and launch the batch in the task