Click to See Complete Forum and Search --> : Command Line parameters c#


ee01ppa
October 1st, 2007, 06:42 AM
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.

Rudegar
October 1st, 2007, 09:39 AM
http://www.c-sharpcorner.com/UploadFile/mahesh/CmdLineArgs03212006232449PM/CmdLineArgs.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