Last active
August 16, 2022 17:23
-
-
Save atwayne/0f98d4bac07a3f33439c35da247e4fcd to your computer and use it in GitHub Desktop.
executes a string as an internal operating system command
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.Runtime.InteropServices; | |
[DllImport("msvcrt.dll")] | |
static extern int system(string command); | |
// Ref: https://docs.microsoft.com/en-us/cpp/c-language/system-function?view=msvc-170 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment