Click here to Skip to main content
15,885,957 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need my task scheduler to pass a string to my windows application when the task scheduler runs the application.exe
Posted

1 solution

Pass it as a program argument: you can pick them up in your Main method using the args parameter, or if it is a WinForms app then:
C#
string[] args = Environment.GetCommandLineArgs();
Will do it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900