Created
April 10, 2018 20:51
-
-
Save matt40k/406436d6cff86fd71ef9cd0f3c82b849 to your computer and use it in GitHub Desktop.
Roger, roger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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