Click here to Skip to main content
15,880,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reflection Question Pin
MrColeyted1-May-08 23:00
MrColeyted1-May-08 23:00 
QuestionXSD class generation tool Pin
cbadal1-May-08 15:52
cbadal1-May-08 15:52 
AnswerRe: XSD class generation tool Pin
cbadal3-May-08 5:20
cbadal3-May-08 5:20 
AnswerRe: XSD class generation tool Pin
sri_00997-Jan-10 19:55
sri_00997-Jan-10 19:55 
Questionpassing argmumnet to cmd from and application Pin
Naveed7271-May-08 14:58
Naveed7271-May-08 14:58 
AnswerRe: passing argmumnet to cmd from and application Pin
Ennis Ray Lynch, Jr.1-May-08 15:03
Ennis Ray Lynch, Jr.1-May-08 15:03 
GeneralRe: passing argmumnet to cmd from and application Pin
Naveed7271-May-08 21:40
Naveed7271-May-08 21:40 
AnswerRe: passing argmumnet to cmd from and application Pin
Luc Pattyn1-May-08 22:36
sitebuilderLuc Pattyn1-May-08 22:36 
Hi,

here are some facts:

1.
every process starts executing some kind of main method or function.
Under .NET the static main() method optionally gets as a parameter a string[] args array
holding the command line parameters.
You can make your app such that it reads that string array, and acts accordingly
(e.g. opens the file or files for which it gets paths).

2.
You can get the same information by using Environment.CommandLine or Environment.GetCommandLineArgs()

3.
You can provide command line arguments in many ways:
- by typing a command in a "DOS Window" (or the "Run" menu under the Start button);
- by having a command line in a batch file (extension .bat) which you execute by double-clicking;
- by adding them to the "Target" field of a desktop shortcut.

4.
Tou can programmatically launch another process and provide a command line while doing so;
it takes the Process class; either use Process.Start method, or instantiate a Process object,
set its StartInfo property, then Start() it.


Have a look at the documentation for all items mentioned!

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I dislike the black-and-white voting system on questions/answers. Dead | X|


QuestionTransfer info from Form1 to Form2 Pin
nelsonpaixao1-May-08 14:35
nelsonpaixao1-May-08 14:35 
AnswerRe: Transfer info from Form1 to Form2 Pin
Christian Graus1-May-08 15:57
protectorChristian Graus1-May-08 15:57 
AnswerRe: Transfer info from Form1 to Form2 Pin
tika/ajay1-May-08 19:50
tika/ajay1-May-08 19:50 
GeneralRe: Transfer info from Form1 to Form2 Pin
Christian Graus1-May-08 21:37
protectorChristian Graus1-May-08 21:37 
AnswerRe: Transfer info from Form1 to Form2 Pin
Bhim Prakash Singh2-May-08 0:12
Bhim Prakash Singh2-May-08 0:12 
QuestionRe: Transfer info from Form1 to Form2 Pin
nelsonpaixao4-May-08 16:35
nelsonpaixao4-May-08 16:35 
Questionadditional tasks in setup project Pin
Knowledgestudent1-May-08 14:31
Knowledgestudent1-May-08 14:31 
AnswerRe: additional tasks in setup project Pin
Christian Graus1-May-08 15:59
protectorChristian Graus1-May-08 15:59 
GeneralRe: additional tasks in setup project Pin
Knowledgestudent1-May-08 22:21
Knowledgestudent1-May-08 22:21 
GeneralRe: additional tasks in setup project Pin
Christian Graus2-May-08 12:04
protectorChristian Graus2-May-08 12:04 
Questionmultiple datatypes inside the same array? Pin
Grubious1-May-08 13:51
Grubious1-May-08 13:51 
AnswerRe: multiple datatypes inside the same array? Pin
Grubious1-May-08 14:53
Grubious1-May-08 14:53 
QuestionAnonymous instance implementing IDisposable interface Pin
Spacix One1-May-08 12:00
Spacix One1-May-08 12:00 
AnswerRe: Anonymous instance implementing IDisposable interface Pin
N a v a n e e t h1-May-08 20:50
N a v a n e e t h1-May-08 20:50 
RantRe: Anonymous instance implementing IDisposable interface Pin
Spacix One2-May-08 3:14
Spacix One2-May-08 3:14 
QuestionIs there a way to the label the ticks in the TrackBar Pin
bscaer1-May-08 11:28
bscaer1-May-08 11:28 
AnswerRe: Is there a way to the label the ticks in the TrackBar Pin
Christian Graus1-May-08 11:51
protectorChristian Graus1-May-08 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.