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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to pass multiple parameters while invoking a process

How to pass multiple parameters while invoking a process

Scheduled Pinned Locked Moved .NET (Core and Framework)
questiontutorial
4 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.
  • F Offline
    F Offline
    Fadi Yoosuf
    wrote on last edited by
    #1

    Hi Hi I am using System.Diagonostics.Process.Start for staring a new process. If I want to pass mulitple marameters with different switches, how can I do it? Thanks Fadi

    L 1 Reply Last reply
    0
    • F Fadi Yoosuf

      Hi Hi I am using System.Diagonostics.Process.Start for staring a new process. If I want to pass mulitple marameters with different switches, how can I do it? Thanks Fadi

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, Process.Start expects an EXE and an argument list, both as a string. It is very similar to the command line you would enter in a DOS window or "command prompt" so separate with spaces, use double quotes to keep arguments that need spaces together. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      F 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, Process.Start expects an EXE and an argument list, both as a string. It is very similar to the command line you would enter in a DOS window or "command prompt" so separate with spaces, use double quotes to keep arguments that need spaces together. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


        F Offline
        F Offline
        Fadi Yoosuf
        wrote on last edited by
        #3

        I had tried putting spaces. but it didn't work out. W.r.t. ur reply, i tried putting quotes for the strings with spaces and it worked fine..... Thank you very much Luc

        L 1 Reply Last reply
        0
        • F Fadi Yoosuf

          I had tried putting spaces. but it didn't work out. W.r.t. ur reply, i tried putting quotes for the strings with spaces and it worked fine..... Thank you very much Luc

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          you're welcome. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          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