Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created April 10, 2018 20:51
Show Gist options
  • Save matt40k/406436d6cff86fd71ef9cd0f3c82b849 to your computer and use it in GitHub Desktop.
Save matt40k/406436d6cff86fd71ef9cd0f3c82b849 to your computer and use it in GitHub Desktop.
Roger, roger
using System.Diagnostics;
namespace Roger
{
class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
{
string rogerArgs = string.Empty;
if (args.Length > 1)
{
int argCnt = 1;
foreach(string arg in args)
{
if (argCnt > 1)
rogerArgs += arg + " ";
++argCnt;
}
}
Process.Start(args[0], rogerArgs);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment