Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture command line arguments in WPF application?

How do I get the command line arguments in a Crystal Report WPF Application?

like image 640
Gihan Lasita Avatar asked Jan 26 '12 19:01

Gihan Lasita


People also ask

How do I get command line arguments in WPF?

Right click on your WPF project in Solution Explorer and select properties. It will display the Window given below. Select Debug option and write the file path in the command line argument.

What are WPF commands?

Commanding is an input mechanism in Windows Presentation Foundation (WPF) which provides input handling at a more semantic level than device input. Examples of commands are the Copy, Cut, and Paste operations found on many applications.


1 Answers

Call Environment.GetCommandLineArgs().

like image 130
SLaks Avatar answered Sep 28 '22 11:09

SLaks