IT/Python

Python PowerShell

Bigtrue 2021. 1. 14. 08:25

Python PowerShell

import subprocess

subprocess.call(["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "ls"])