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. C#
  4. Arguments to .exe

Arguments to .exe

Scheduled Pinned Locked Moved C#
questionhelp
4 Posts 3 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.
  • S Offline
    S Offline
    Sean89
    wrote on last edited by
    #1

    How do I send Arguments to an executeable? Any help is appreciated. Wacky waving inflateable arm flailing tube man!

    S J S 3 Replies Last reply
    0
    • S Sean89

      How do I send Arguments to an executeable? Any help is appreciated. Wacky waving inflateable arm flailing tube man!

      S Offline
      S Offline
      Somanova420
      wrote on last edited by
      #2

      It depends, do you want to send an argument during debug, or for a 'released' exe? If you are debugging you want to go to your projects properties (not the solutions) and under the 'debug' tab there's a textbox for 'Command Line Arguments'. For use with an actual exe, create a shortcut to the exe, open the shortcuts properties. There will be a textbox titled target (in winxp). put the path that's in the in quotes ("path\to\exe") and then you can put any arguments behind that.

      1 Reply Last reply
      0
      • S Sean89

        How do I send Arguments to an executeable? Any help is appreciated. Wacky waving inflateable arm flailing tube man!

        J Offline
        J Offline
        Judah Gabriel Himango
        wrote on last edited by
        #3

        See the ProcessStartInfo class[^], in particular, its Arguments[^] property.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Connor's Christmas Spectacular! Judah Himango

        1 Reply Last reply
        0
        • S Sean89

          How do I send Arguments to an executeable? Any help is appreciated. Wacky waving inflateable arm flailing tube man!

          S Offline
          S Offline
          Sean89
          wrote on last edited by
          #4

          Thanks to both of you!

          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