A wrapper to the System.Diagnostics.Process Class for dotnet like development Kits like .NET,monoSDK
Because there is no official Classes to access the shell of the Operating System in the target platforms of dotnet(and dotnet like development kits) , through this Library you perform shell operations using the System.Diagnostics.Process Class and its dependencies.
-
Pick the Oscs.cs file and Copy it to your project directory.
-
Dont Forget to add the Oscs.cs file during your compilation incase you use it in your project.
-
To launch a process / program from the shell of the os , You have to instantiate OsShell class found in the Oscs namespace.
Oscs.OsShell osShell = new Oscs.OsShell();
-
Call the OsShell.Launch() method on the OsShell object to launch the program. Pass the following information to the Launch() method : ProcessName/ProgramName , ProgramArguments , WorkingDirectory , a bool indicating whether to use shell execution or not.