일반
2015.12.08 19:50

NirCmd 사용법

조회 수 7777 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

http://www.nirsoft.net/utils/nircmd.html



xamples of what you can do with NirCmd

Open the door of J: CD-ROM drivenircmd.exe cdrom open j:
Close the door of Y: CD-ROM drivenircmd.exe cdrom close y:
Speaks the text currently in the clipboard (For Windows XP/Vista/7/8).speak text ~$clipboard$
Speaks the text stored inside speak.txt into speak.wav filename (For Windows XP/Vista/7/8).speak file "c:\temp\speak.txt" 0 100 "c:\temp\speak.wav" 48kHz16BitStereo
Increase the system volume by 2000 units (out of 65535)nircmd.exe changesysvolume 2000
Decrease the system volume by 5000 units (out of 65535)nircmd.exe changesysvolume -5000
Set the volume to the highest valuenircmd.exe setsysvolume 65535
Mute the system volumenircmd.exe mutesysvolume 1
Unmute the system volumenircmd.exe mutesysvolume 0
Switch the system volume between the mute and normal state.nircmd.exe mutesysvolume 2
Create a shortcut on your desktop that switch the system volume between the mute and normal state.nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2
Turn off the monitornircmd.exe monitor off
Start the default screen savernircmd.exe screensaver
Put your computer in 'standby' modenircmd.exe standby
log off the current usernircmd.exe exitwin logoff
Ask if you want to reboot, and if you answer 'Yes', reboot the computer.nircmd.exe qboxcom "Do you want to reboot ?" "question" exitwin reboot
Turn off your computernircmd.exe exitwin poweroff
Turn off all computers specified in computers.txt !multiremote copy "c:\temp\computers.txt" exitwin poweroff force
Dial to "My Internet" connectionnircmd.exe rasdial "My Internet"
Disconnect the "My Internet" connectionnircmd.exe rashangup "My Internet"
Make your Internet Explorer windows 75% transparent ! (192 / 256)nircmd.exe win trans ititle "internet explorer" 192
Minimize all your Internet Explorer windowsnircmd.exe win min class "IEFrame"
Close all your Internet Explorer windowsnircmd.exe win close class "IEFrame"
Close all your Explorer windows (My Computer, folders, and so on)nircmd.exe win close class "CabinetWClass"
Hide all your Internet Explorer windowsnircmd.exe win hide class "IEFrame"
Show all your Internet Explorer windows (after you made them hidden with previous example)nircmd.exe win show class "IEFrame"
Center all top-level windowsnircmd.exe win center alltop
Remove the title bar of My Computer window.nircmd.exe win -style title "my computer" 0x00C00000
Return the title bar of My Computer window that we removed in the previous example.nircmd.exe win +style title "my computer" 0x00C00000
Set the My Computer window to right-to-left order (For hebrew and arabic languages)nircmd win +exstyle title "my computer" 0x00400000
Set all child windows of My Computer window to right-to-left order (For hebrew and arabic languages)nircmd win child title "my computer" +exstyle all 0x00400000
Create a shortcut on your desktop that closes all your Internet Explorer windowsnircmd.exe cmdshortcut " "~$folder.desktop$ "Close All IE" win close class "IEFrame"
Create a shortcut on your desktop that hides all your Internet Explorer windowsnircmd.exe cmdshortcut " "~$folder.desktop$ "Hide All IE" win hide class "IEFrame"
Create a shortcut on your desktop that shows back all your Internet Explorer windowsnircmd.exe cmdshortcut " "~$folder.desktop$ "Show All IE" win show class "IEFrame"
Set the Windows Calculator as top-most window (above all other windows)nircmd.exe win settopmost title "Calculator" 1
Set the Windows Calculator back to regular window (non top-most window)nircmd.exe win settopmost title "Calculator" 0
Create a shortcut to Windows calculator under Start Menu->Programs->Calculatorsnircmd.exe shortcut "f:\winnt\system32\calc.exe" "~$folder.programs$\Calculators" "Windows Calculator"
Hide the desktop windownircmd.exe win hide class progman
Show the desktop window (After hiding it in previous example)nircmd.exe win show class progman
Hide the start button on the system traynircmd.exe win child class "Shell_TrayWnd" hide class "button"
Show the start button on the system traynircmd.exe win child class "Shell_TrayWnd" show class "button"
Hide the clock on the system traynircmd.exe win child class "Shell_TrayWnd" hide class "TrayClockWClass"
Show the clock on the system traynircmd.exe win child class "Shell_TrayWnd" show class "TrayClockWClass"
Kill (terminate) all instance of Internet Explorer processesnircmd.exe killprocess iexplore.exe
Create a shortcut on your desktop that opens the door of K: CDROM drive when you run it.nircmd.exe cmdshortcut "~$folder.desktop$" "Open CDROM" cdrom open k:
Create a shortcut to NirSoft Web site on your desktopnircmd.exe urlshortcut "http://www.nirsoft.net" "~$folder.desktop$" "NirSoft"
Add NirSoft Web site to your Favorities under Links folder.nircmd.exe urlshortcut "http://www.nirsoft.net" "~$folder.favorites$\Links" "NirSoft"
Create a shortcut to NirSoft Web site on the desktop of all computers listed in computers.txtnircmd.exe multiremote copy "c:\temp\computers.txt" urlshortcut "http://www.nirsoft.net" "~$folder.common_desktop$" "NirSoft"
Set the display mode to 800x600x24bit colorsnircmd.exe setdisplay 800 600 24
Create a shortcut on the desktop that set the display mode to 800x600x24bit colorsnircmd.exe cmdshortcut "~$folder.desktop$" "800x600x24" setdisplay 800 600 24
Copy all shortcuts on your desktop to another folder (f:\temp\desktop).nircmd.exe execmd copy "~$folder.desktop$\*.lnk" f:\temp\desktop
Restart your Apache server (under Windows NT/2000/XP/2003)nircmd.exe service restart apache
Create a shortcut on your desktop that restarts the Apache servernircmd.exe cmdshortcut "~$folder.desktop$" "Restart Apache" service restart apache
Restart your IISnircmd.exe service restart w3svc
Restart MySqlnircmd.exe service restart MySql
Open the desired Registry key/value in RegEditnircmd.exe regedit "HKLM\Software\Microsoft\Windows\CurrentVersion" "CommonFilesDir"
Open the Registry key that you copied to the clipboard in RegEdit.nircmd regedit "~$clipboard$"
Disable the screen savernircmd.exe regsetval sz "HKCU\control panel\desktop" "ScreenSaveActive" 0
Enable the screen savernircmd.exe regsetval sz "HKCU\control panel\desktop" "ScreenSaveActive" 1
Change the date/time of the specified filename (creation time and modified time)nircmd.exe setfiletime "c:\temp\myfile.txt" "24-06-2003 17:57:11" "22-11-2005 10:21:56"
Copy your desktop folder path to the clipboardnircmd.exe clipboard set ~$folder.desktop$
Copy your start menu folder path to the clipboardnircmd.exe clipboard set ~$folder.start_menu$
Copy the content of info1.txt (simple text file) to the clipboardnircmd.exe clipboard readfile "c:\My Files\info1.txt"
Add the text content of clipboard to info1.txtnircmd.exe clipboard addfile "c:\My Files\info1.txt"
Clear the clipboardnircmd.exe clipboard clear
Create all folders specified in "c:\temp\folders.txt". The folder path names are separated by CRLF characters.nircmd.exe paramsfile "c:\temp\folders.txt" "" "" execmd md ~$fparam.1$
Install the specified .NET assembly in the global assembly cache (like gacutil)nircmd.exe gac install "C:\temp\MyAssembly\bin\MyAssembly.dll"
Empty the recycle bin in all drives.nircmd.exe emptybin
Answer 'Yes' to a standard Windows message-box.nircmd.exe dlg "" "" click yes
Wait 2 seconds, and then save the current screen to shot.pngnircmd.exe cmdwait 2000 savescreenshot "f:\temp\shot.png"
Save 10 screenshots in a loop, and wait 60 seconds between the screenshot save calls. The filenames of the screenshot will contain the time and date of the saved screenshot.nircmd.exe loop 10 60000 savescreenshot c:\temp\scr~$currdate.MM_dd_yyyy$-~$currtime.HH_mm_ss$.png
Wait until Firefox is closed, and then say "Firefox was closed"nircmd.exe waitprocess firefox.exe speak text "Firefox was closed"
Run RegEdit with SYSTEM user (On Windows 7/8/Vista/2008), which allows you to view all hidden system Registry keysnircmd.exe elevatecmd runassystem c:\windows\regedit.exe

Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
401 Android SQLite 데이타 베이스 다루기 2015.03.03 7260 0
400 LINUX bash 의 명령어 History 2015.01.20 7305 0
399 LINUX 리눅스 계정 목록 보기 2016.03.21 7310 0
398 LINUX 우분투(Ubuntu)에서 APM 웹서버 구축하기 2016.03.17 7354 0
397 Pi Simple DAC - PWM을 Voltage로 변환하는 회로 file 2016.11.21 7397 0
396 Pi ARDUINO multi function shield 핀정보 및 FND 소스 2016.11.21 7482 0
395 Android JNI에서 가변 인수(varargs) 쓰기 2014.08.04 7512 0
394 일반 VP9 코덱 2015.09.01 7535 0
393 JAVA 자바 프로그래머가 알아야할 10가지 이클립스 단축키 1 2015.10.27 7570 0
392 Android gdb commands 2015.03.11 7579 0
391 Pi 라즈베리파이 적외선(IR) 리모컨 송신/수신 - LIRC Library 2017.10.17 7658 0
390 PHP Simple GD example 2014.07.10 7737 0
389 JAVA 현재시간 구하기 2015.10.21 7741 0
» 일반 NirCmd 사용법 2015.12.08 7777 0
387 일반 SQL Injection 우회 정리 2019.07.10 7898 0
목록
Board Pagination ‹ Prev 1 ... 3 4 5 6 7 8 9 10 11 12 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5