PC Review


Reply
Thread Tools Rate Thread

Command arguments

 
 
SK
Guest
Posts: n/a
 
      3rd Aug 2004
how can i get the arguments given in the command line?
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      3rd Aug 2004
SK <(E-Mail Removed)> wrote:
> how can i get the arguments given in the command line?


Use a Main method which takes an array of strings as its parameter. The
arguments will be in there.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      9th Aug 2004
SK wrote:
> how can i get the arguments given in the command line?


Environment.GetCommandLineArgs() or Environment.CommandLine

Richard
--
my email (E-Mail Removed) is encrypted with ROT13 (www.rot13.org)
sign up for my free .NET newsletter at
http://www.wd-mag.com/newsletters/


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line arguments =?Utf-8?B?Q29saW4gQ29hZHk=?= Microsoft Outlook Discussion 0 15th Aug 2005 07:08 PM
Command line arguments =?Utf-8?B?anA=?= Windows XP Internet Explorer 0 10th Mar 2005 01:45 PM
Command line arguments Hari Microsoft Dot NET 6 27th Jan 2004 06:58 AM
Command Line Arguments Michael Microsoft Excel Programming 4 21st Nov 2003 06:01 PM
command line arguments =?Utf-8?B?Q29saW4gQ29hZHk=?= Microsoft Outlook Discussion 3 18th Nov 2003 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 PM.