Guest User

Untitled

a guest
Apr 1st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // Declares the string array "args" to hold the
  2. // command line arguments. Remember it will be a
  3. // string array.
  4. private string[] args;
  5.  
  6. public MainWindow()
  7. {
  8. // Gets the command line arguments
  9. args = Environment.GetCommandLineArgs();
  10.  
  11. // Shows a message box for each argument.
  12. // Remember that arg[0] will always be the
  13. // program file name in WPF
  14. for (int i = 0; i < args.Length; i++)
  15. {
  16. MessageBox.Show(args[i] + "\n");
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment