diff options
| author | ComputeLinux <[email protected]> | 2016-07-23 10:16:05 -0700 |
|---|---|---|
| committer | ComputeLinux <[email protected]> | 2016-07-23 10:16:05 -0700 |
| commit | 69f901561971b2d5a7a0aebb63bd378a4b7b1ad4 (patch) | |
| tree | 940167a28728acc80377d5ec7cb4a9ef4934105d /source/WindowsFormsApplication1/Apps/Terminal.cs | |
| parent | c2acf569185ddd628b591e1b149da74dd301e93d (diff) | |
| download | shiftos-c--69f901561971b2d5a7a0aebb63bd378a4b7b1ad4.tar.gz shiftos-c--69f901561971b2d5a7a0aebb63bd378a4b7b1ad4.tar.bz2 shiftos-c--69f901561971b2d5a7a0aebb63bd378a4b7b1ad4.zip | |
Add WindowsEXE running as a shiftorium thing.
Diffstat (limited to 'source/WindowsFormsApplication1/Apps/Terminal.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/Terminal.cs | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Terminal.cs b/source/WindowsFormsApplication1/Apps/Terminal.cs index 3d0e2b8..2e464f5 100644 --- a/source/WindowsFormsApplication1/Apps/Terminal.cs +++ b/source/WindowsFormsApplication1/Apps/Terminal.cs @@ -1662,33 +1662,40 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o /// <param name="args">string[] args</param> public void runExe(string[] args) { - bool isFirstArg = true; - string exeArgs = ""; - foreach (string arg in args) + if (API.Upgrades["fileskimmer"]) { - if (!isFirstArg) + bool isFirstArg = true; + string exeArgs = ""; + foreach (string arg in args) { - exeArgs = exeArgs + " " + arg; + if (!isFirstArg) + { + exeArgs = exeArgs + " " + arg; + } + else + { + isFirstArg = false; + } } - else - { - isFirstArg = false; - } - } - string lp = "C:\\ShiftOS\\bin\\" + args[0] + ".exe"; - Process p = new Process(); - p.StartInfo.Arguments = exeArgs; - p.StartInfo.UseShellExecute = false; - p.StartInfo.RedirectStandardOutput = true; - p.StartInfo.RedirectStandardInput = true; - p.StartInfo.FileName = lp; - p.StartInfo.CreateNoWindow = true; - p.StartInfo.ErrorDialog = false; - p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; - p.StartInfo.WorkingDirectory = current_dir; - p.Start(); - WriteLine(p.StandardOutput.ReadToEnd()); - p.WaitForExit(); + string lp = "C:\\ShiftOS\\bin\\" + args[0] + ".exe"; + Process p = new Process(); + p.StartInfo.Arguments = exeArgs; + p.StartInfo.UseShellExecute = false; + p.StartInfo.RedirectStandardOutput = true; + p.StartInfo.RedirectStandardInput = true; + p.StartInfo.FileName = lp; + p.StartInfo.CreateNoWindow = true; + p.StartInfo.ErrorDialog = false; + p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; + p.StartInfo.WorkingDirectory = current_dir; + p.Start(); + WriteLine(p.StandardOutput.ReadToEnd()); + p.WaitForExit(); + } + else + { + wrongcommand(); + } } #endregion |
