CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    25

    Command Line parameters c#

    Hi, All

    How do can i start and application which takes in two put parameter via command line. I have an application which requires two input paramenters at start up and i would like to use process.start() to initiate this process whilst passing in to the process the two input parameters.

    the process i want to start is eg.

    public Report(string ReportPath, string SummaryPath)

    and i would like to start Report.exe from my form class using process.start(c:\Report.exe plus the two input parameters). All my attemps have failed I will appreciate any help. Thanks in advance.

  2. #2
    Join Date
    Nov 1999
    Location
    Denmark
    Posts
    260

    Re: Command Line parameters c#

    http://www.c-sharpcorner.com/UploadF...dLineArgs.aspx
    this show how well not with 2 arguments but 7

    to set them for debug you can set it in project settings
    and to call without a console you add the parameters to their target
    of a shortcut to the program

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured