Parameter passing and reading [task scheduler]
-
I am creating an new scheduled task using vb.net. I need to pass a parameter to it. Can it be done in name=value format. Also how can i read it in other vb.net program which is scheduled. For e.g., If I pass parameter as follows: t.Parameters = "name=" & name then how can i read this parameter from the scheduled program. For more info on scheduler task component please refer following links; http://www.codeproject.com/csharp/taskschedulerlibrary.asp http://www.codeproject.com/csharp/TSNewLib.asp Thanks for obliging.
-
I am creating an new scheduled task using vb.net. I need to pass a parameter to it. Can it be done in name=value format. Also how can i read it in other vb.net program which is scheduled. For e.g., If I pass parameter as follows: t.Parameters = "name=" & name then how can i read this parameter from the scheduled program. For more info on scheduler task component please refer following links; http://www.codeproject.com/csharp/taskschedulerlibrary.asp http://www.codeproject.com/csharp/TSNewLib.asp Thanks for obliging.
-
I am creating an new scheduled task using vb.net. I need to pass a parameter to it. Can it be done in name=value format. Also how can i read it in other vb.net program which is scheduled. For e.g., If I pass parameter as follows: t.Parameters = "name=" & name then how can i read this parameter from the scheduled program. For more info on scheduler task component please refer following links; http://www.codeproject.com/csharp/taskschedulerlibrary.asp http://www.codeproject.com/csharp/TSNewLib.asp Thanks for obliging.
Use
Environment.GetCommandLineArgs()
to retrieve the parameters passed into your application. This will return a string array each element containing an argument. You have to define a way to work with these arguments, so if you prefer you can of course use a name=value format. However it is completely up to you. --Colin Mackay--