0

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

6
Contributors
7
Replies
9
Views
11 Years
Discussion Span
Last Post by __avd
Featured Replies
  • 1
    __avd 1,826   6 Years Ago

    Welcome sandeep9808. Please do not resurrect old threads. If you have any questions please ask. .... You are welcome to start your own threads. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Thread Closed. Read More

0

Try the Environment.GetCommandLineArgs() method

Ok, thanks i check it out.

-T

0

static void Main(string[] args)
{
}

make your Main look like this and "args" is a string array of all the args passed

0

static void Main(string[] args)
{
}

make your Main look like this and "args" is a string array of all the args passed

Hey, thanks ive searched the web and ound some examples...and i will continue to mess around with it.

-T

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.