This commit is contained in:
snltty
2024-08-02 17:46:04 +08:00
parent 1d7c805255
commit 36aa9b1da3
14 changed files with 160 additions and 46 deletions

View File

@@ -9,6 +9,11 @@ namespace linker.libs
{
return Execute("cmd.exe", arg, commands, readResult);
}
public static string PowerShell(string arg, string[] commands, bool readResult = true)
{
return Execute("powershell.exe", arg, commands, readResult);
}
public static string Linux(string arg, string[] commands, bool readResult = true)
{
return Execute("/bin/bash", arg, commands, readResult);