cmd

·🧩 Code
# 프로그램 종료 taskkill /f /im a.exe # D to E 미러링 robocopy "D:\Work" "E:\_Drive_D\Work" /mir /zb /r:1 # 모든 파일복사 후 덮어쓰기 robocopy "E:\VM\_hdds\patch" "C:\ProgramData\VMware\VMware Workstation" /xf * # 강제 복사 xcopy "E:\Down\a.exe" "D:\Macro" /y # time out timeout /t 1 # 프로그램 실행 start D:\Data\a.exe # F 드라이브 부팅 bootsect.exe /nt60 f: # reboot shutdown fw=cmos %windir%\System32\shutdown.exe /r /t 1 %windir%\..
·🖥️ 정보
■ 프로세스 종료 명령어 taskkill /IM 프로세스이름(exe포함) /f 강제옵션 ■ 프로세스 실행 명령어 cmd /c "프로세스이름(exe포함)" ■ 서비스 종료 명령어 net stop "서비스이름or표기이름" 서비스 종료에 이름으로하여 종료 명령어에는 " "이 들어가야함. 속성에 뜨는 서비스이름, 표시이름 둘다 적용가능 ■ 서비스 타입 변경 명령어 cmd /c " sc config 서비스이름or표시이름 start= demand" cmd /c " sc config 서비스이름or표시이름 start= disabled" ■ 예제 ) edge chrome 브라우저 종료 후 컴퓨터 끄기 taskkill /IM msedge.exe timeout 1 taskkill /IM chrome.exe timeout 1..
천하나
'cmd' 태그의 글 목록