Mega Code Archive
Parse command line arguments and make them available to an application
//File:App.xaml.cs
namespace CommandLineArgumentSample
{
using System;
using System.Collections;
using System.Text.RegularExpressions;
using System.Windows;
public partial class App : Application
{
void app_Startup(object sender, StartupEventArgs e)
{
if (e.Args.Length == 0) return;
foreach (string arg in e.Args)
{
Console.WriteLine(arg);
}
}
}
}