Click here to Skip to main content
15,898,849 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get the param from a shortcut,you can get it by API function and Interop.IWshRuntimeLibrary if shortcut's name is known in c#;But when the shortcut's name is changed,it will not to get the param; please help !Thanks
Posted

1 solution

Are you trying to get the command line parameters?

If so, you can use Environment.CommandLine or Environment.GetCommandLineArgs(), or declare your Main method like this:

C#
static void Main( string[] args )


Nick
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900