private static string GetAssemblyCommand() { string runningexe = System.Reflection.Assembly.GetEntryAssembly().CodeBase.Replace("/",@"\"); return runningexe.Substring(8, runningexe.Length - 8) + " %1"; }