-
[Windows] Powershell 백그라운드 실행 본문
# 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
백그라운드로 돌아야 할 때
'Workspace' 카테고리의 다른 글
[Windows] Powershell FTP (0) | 2020.08.28 |
---|---|
[Windows] Powershell 배경화면 바꾸기 (0) | 2020.08.24 |
[악성코드] Windows Malware Persistence (0) | 2020.08.13 |
[Windows] C 프로그램 백그라운드 실행 (0) | 2020.08.13 |
[악성코드] CVE-2017-8291 한글 문서(.hwp) 악성코드 (0) | 2020.08.12 |
Comments