一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

Win之NirCmd:NirCmd的簡介、安裝、使用方法之詳細(xì)攻略

 處女座的程序猿 2021-09-28

Win之NirCmd:NirCmd的簡介、安裝、使用方法之詳細(xì)攻略


NirCmd的簡介

? ? ? ?NIrCMD是一個小命令行實(shí)用工具,允許您在不顯示任何用戶界面的情況下執(zhí)行一些有用的任務(wù)。通過使用簡單命令行選項(xiàng)運(yùn)行NIMRCD,可以在注冊表中寫入和刪除值和鍵,將值寫入INI文件,撥號到Internet帳戶或連接到VPN網(wǎng)絡(luò),重新啟動Windows或關(guān)閉計(jì)算機(jī),創(chuàng)建文件快捷方式,更改創(chuàng)建/修改日期。一個文件,改變你的顯示設(shè)置,關(guān)閉你的顯示器,打開你的CD-ROM驅(qū)動器的門,以及更多…
NirCmd v2.81官網(wǎng)

NirCmd的安裝

Download NirLauncher Package

NirCmd的使用方法

例如:nircmd setdefaultsounddevice

彈出盤符為J的光驅(qū)????

NirCmd.exe cdrom open j:

彈入盤符為Y的光驅(qū)

nircmd.exe cdrom close y:

增加2000個單位的系統(tǒng)音量(最大65535)

nircmd.exe changesysvolume 2000

降低5000個單位的系統(tǒng)音量(最大65535)

nircmd.exe changesysvolume -5000

設(shè)置為最高音量

nircmd.exe setsysvolume 65535

設(shè)置為靜音

nircmd.exe mutesysvolume 1

取消靜音

nircmd.exe mutesysvolume 0

在靜音與正常狀態(tài)之間切換

nircmd.exe mutesysvolume 2

在桌面創(chuàng)建靜音與正常狀態(tài)切換命令的快捷方式

nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2

關(guān)閉顯示器

nircmd.exe monitor off

啟動默認(rèn)屏保

nircmd.exe screensaver

進(jìn)入待機(jī)狀態(tài)

nircmd.exe standby

注銷當(dāng)前用戶

nircmd.exe exitwin logoff

彈出對話框,詢問是否重啟。選擇是則重啟電腦

nircmd.exe qboxcom "Do you want to reboot?" "question" exitwin reboot

關(guān)閉computers.txt中指定的所有計(jì)算機(jī)

multiremote copy "c:\temp\computers.txt" exitwin poweroff force

撥號連接到"My Internet"

nircmd.exe rashangup "My Internet"

設(shè)置IE窗口為75%透明度(192/256)

nircmd.exe win trans ititle "internet explorer" 192

最小化所有的IE窗口

nircmd.exe win min class "IEFrame"

關(guān)閉所有的IE窗口

nircmd.exe win close class "IEFrame"

關(guān)閉所有的資源管理器窗口(我的電腦、文件夾等)

nircmd.exe win close class "CabinetWClass"

隱藏所有的IE窗口

nircmd.exe win hide class "IEFrame"

顯示所有的IE窗口(在用上面命令隱藏后)

nircmd.exe win show class "IEFrame"

把所有的頂級窗口居中

nircmd.exe win center alltop

去掉我的電腦窗口的標(biāo)題欄

nircmd.exe win -style title "my computer" 0x00C0000

恢復(fù)我的電腦窗口的標(biāo)題欄(當(dāng)用上面命令去除后)

nircmd.exe win +style title "my computer" 0x00C0000

設(shè)置我的電腦窗口為從右至左的順序(適用于希伯來語和阿拉伯語)

nircmd.exe win +exstyle title "my computer" 0x00400000

設(shè)置我的電腦窗口的所有子窗口為從右至左的順序(適用同上)

nircmd.exe win child title "my computer" +exstyle all 0x00400000

在桌面創(chuàng)建可以關(guān)閉所有IE窗口的快捷方式

nircmd.exe cmdshortcut " "~$folder.desktop$ "Close All IE" win close class "IEFrame"

在桌面創(chuàng)建可以隱藏所有IE窗口的快捷方式

nircmd.exe cmdshortcut " "~$folder.desktop$ "Hide All IE" win hide class "IEFrame"

在桌面創(chuàng)建可以再次顯示所有IE窗口的快捷方式

nircmd.exe cmdshortcut " "~$folder.desktop$ "Show All IE" win show class "IEFrame"

把calculator窗口設(shè)置為最上層窗口(在其他窗口之上)

nircmd.exe win settopmost title "Calculator" 1

恢復(fù)calculator窗口為原始窗口狀態(tài)(不處于最上層)

nircmd.exe win settopmost title "Calculator" 0

創(chuàng)建calc.exe快捷方式到開始菜單->程序->Calculators

nircmd.exe shortcut "f:\winnt\system32\calc.exe" "~$folder.programs$\Calculators" "Windows Calculator"

隱藏桌面所有圖標(biāo)

nircmd.exe win hide class progman

顯示桌面所有圖標(biāo)(用以上命令隱藏過后)

nircmd.exe win show class progman

隱藏系統(tǒng)開始按鈕

nircmd.exe win child class "Shell_TrayWnd" hide class "button"

顯示系統(tǒng)開始按鈕

nircmd.exe win child class "Shell_TrayWnd" show class "button"

隱藏系統(tǒng)時間

nircmd.exe win child class "Shell_TrayWnd" hide class "TrayClockWClass"

顯示系統(tǒng)時間

nircmd.exe win child class "Shell_TrayWnd" show class "TrayClockWClass"

終止所有IE實(shí)例

nircmd.exe killprocess iexplore.exe

創(chuàng)建桌面快捷方式,運(yùn)行即可彈出光驅(qū)(K盤)

nircmd.exe cmdshortcut "~$folder.desktop$" "Open CDROM" cdrom open k:

將nirsoft網(wǎng)址創(chuàng)建到桌面快捷方式

nircmd.exe urlshortcut "http://www." "~$folder.desktop$" "NirSoft"

添加nirsoft網(wǎng)址到收藏夾\鏈接下

nircmd.exe urlshortcut "http://www." "~$folder.favorites$\Links" "NirSoft"

將nirsoft網(wǎng)址快捷方式創(chuàng)建到computers.txt中列出的所有計(jì)算機(jī)的桌面

nircmd.exe multiremote copy "c:\temp\computers.txt" urlshortcut "http://www." "~$folder.common_desktop$" "NirSoft"

設(shè)置顯示模式為800X600,24位色

nircmd.exe setdisplay 800 600 24

將設(shè)置顯示模式為800X600,24位色命令創(chuàng)建為桌面快捷方式

nircmd.exe cmdshortcut "~$folder.desktop$" "800x600x24" setdisplay 800 600 24

復(fù)制所有桌面快捷方式到其他文件夾(f:\temp\desktop)

nircmd.exe execmd copy "~$folder.desktop$\*.lnk" f:\temp\desktop

重啟你的Apache server服務(wù)器(windows NT/2000/XP/2003)

nircmd.exe service restart apache

將重啟Apache server服務(wù)器命令創(chuàng)建為桌面快捷方式

nircmd.exe cmdshortcut "~$folder.desktop$" "Restart Apache" service restart apache

重啟IIS(互聯(lián)網(wǎng)信息服務(wù))

nircmd.exe service restart w3svc

重啟MySql

nircmd.exe service restart MySql

打開指定注冊表項(xiàng)/值

nircmd.exe regedit "HKLM\Software\Microsoft\Windows\CurrentVersion" "CommonFilesDir"

打開你在注冊表編輯器中復(fù)制到剪切板的注冊表項(xiàng)

nircmd regedit "~$clipboard$"

禁用屏保

nircmd.exe regsetval sz "HKCU\control panel\desktop" "ScreenSaveActive" 0

取消禁用屏保

nircmd.exe regsetval sz "HKCU\control panel\desktop" "ScreenSaveActive" 1

改變指定文件的日期/時間(創(chuàng)建時間和修改時間)

nircmd.exe setfiletime "c:\temp\myfile.txt" "24-06-2003 17:57:11" "22-11-2005 10:21:56"

復(fù)制桌面所在路徑到剪切板

nircmd.exe clipboard set ~$folder.desktop$

復(fù)制開始菜單文件夾路徑到剪切板

nircmd.exe clipboard set ~$folder.start_menu$

復(fù)制文本info1.txt中的內(nèi)容到剪切板

nircmd.exe clipboard readfile "c:\My Files\info1.txt"

將剪切板中內(nèi)容添加到文本info1.txt中

nircmd.exe clipboard addfile "c:\My Files\info1.txt"

清空剪切板

nircmd.exe clipboard clear

創(chuàng)建所有在"c:\temp\folders.txt"中指定的文件夾,文件夾路徑名用回車符隔開

nircmd.exe paramsfile "c:\temp\folders.txt" "" "" execmd md ~$fparam.1$

安裝所有在全局程序集緩存(GAC)中指定的.NET程序集

nircmd.exe gac install "C:\temp\MyAssembly\bin\MyAssembly.dll"

清空所有磁盤上的回收站

nircmd.exe emptybin

對一個標(biāo)準(zhǔn)的Windows信息框回復(fù)確認(rèn)

nircmd.exe dlg "" "" click yes

延遲2秒鐘,然后保存當(dāng)前屏幕截圖到shot.png

nircmd.exe cmdwait 2000 savescreenshot "f:\temp\shot.png"

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." "~$folder.desktop$" "NirSoft"
Add NirSoft Web site to your Favorities under Links folder.nircmd.exe urlshortcut "http://www." "~$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." "~$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

相關(guān)文章
NirCmd介紹
命令行工具(nircmd.exe)的使用方法

    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多

    空之色水之色在线播放| 成人精品视频在线观看不卡| 日本高清一区免费不卡| 91精品国产综合久久不卡| 日韩av亚洲一区二区三区| 国产在线观看不卡一区二区| 视频一区二区 国产精品| 黄片免费观看一区二区| 亚洲精品日韩欧美精品| 在线视频三区日本精品| 中国黄色色片色哟哟哟哟哟哟| 色婷婷在线视频免费播放| 亚洲最新一区二区三区| 九九九热视频免费观看| 国产午夜精品久久福利| 国产精品大秀视频日韩精品| 日韩国产精品激情一区| 日韩国产亚洲欧美另类| 色丁香一区二区黑人巨大| 免费精品国产日韩热久久| 国产人妻精品区一区二区三区| 成在线人免费视频一区二区| 五月婷婷六月丁香狠狠| 麻豆最新出品国产精品| 伊人欧美一区二区三区| 一区二区三区国产日韩| 中文字幕一区二区三区中文| 国产精品偷拍视频一区| 91偷拍与自偷拍精品| 中日韩免费一区二区三区| 国产亚洲精品久久久优势| 久久经典一区二区三区| 亚洲欧美日韩另类第一页| 午夜精品一区二区av| 亚洲国产精品一区二区| 午夜精品久久久免费视频| 久久99国产精品果冻传媒| 日本视频在线观看不卡| 精品人妻少妇二区三区| 午夜直播免费福利平台| 这里只有九九热精品视频|