| | |
Command Line Arguments
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
How can these be done. For example running a shourtcut thats path is this
C:\app.exe -sync
will run a certain part of the application(the sync function). Do i need to make a seperate application. Also say i have a program that plays music files. then i have a music file that i right click and select to open with ,my proggie. How could i make it so that it knows to play that file?
i hope thats clear. The main thing i would like to know is the command line arguments.
-T
C:\app.exe -sync
will run a certain part of the application(the sync function). Do i need to make a seperate application. Also say i have a program that plays music files. then i have a music file that i right click and select to open with ,my proggie. How could i make it so that it knows to play that file?
i hope thats clear. The main thing i would like to know is the command line arguments.
-T
Firefox
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
•
•
•
•
Originally Posted by _r0ckbaer
Try the Environment.GetCommandLineArgs() method
-T
Firefox
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
•
•
•
•
Originally Posted by plazmo
static void Main(string[] args)
{
}
make your Main look like this and "args" is a string array of all the args passed
-T
Firefox
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
•
•
Join Date: Oct 2008
Posts: 13
Reputation:
Solved Threads: 1
C# program accept arguments in the order of args[0], args[1] etc.
Console.WriteLine("Arguments-1 " + args[0]+" Argument-2 "+args[1]);
read full source code
http://csharp.net-informations.com/o...line-tools.htm
chan.
Console.WriteLine("Arguments-1 " + args[0]+" Argument-2 "+args[1]);
read full source code
http://csharp.net-informations.com/o...line-tools.htm
chan.
![]() |
Similar Threads
- command line arguments help (C)
- To fetch data through command line arguments (C++)
- HELP!!!need help with command line arguments and creating a package in java. HELP!!!! (Java)
- command line arguments (C++)
- Command-line Arguments. (C++)
Other Threads in the C# Forum
- Previous Thread: why use interfaces?
- Next Thread: Link to download Excel 2003 PIA for Vista
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development dll draganddrop drawing encryption enum event excel file finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile globalization httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser wia windows winforms wpf xml






