-

[Windows] Powershell 백그라운드 실행 본문

Workspace

[Windows] Powershell 백그라운드 실행

r99bbit 2020. 8. 20. 16:10
# hide window
$t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);'
add-type -name win -member $t -namespace native
[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0)

# your code

백그라운드로 돌아야 할 때

Comments