Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Parameter passing and reading [task scheduler]

Parameter passing and reading [task scheduler]

Scheduled Pinned Locked Moved Visual Basic
csharpcomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vipul Bhatt
    wrote on last edited by
    #1

    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.

    C 2 Replies Last reply
    0
    • V Vipul Bhatt

      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.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      http://www.codeproject.com/csharp/taskschedulerlibrary.asp[^] http://www.codeproject.com/csharp/TSNewLib.asp[^] --Colin Mackay--

      1 Reply Last reply
      0
      • V Vipul Bhatt

        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.

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        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--

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups