NirCmd is a freeware utility that allows you to perform tasks from the command line, .bat files, desktop shortcuts and even è un programma di utilità del freeware che permette di eseguire operazioni da linea di comando,. bat, desktop e anche i collegamenti Launchy . There’sa large list of commands on the NirCmd website. C'è un grande elenco di comandi NirCmd sul sito web. I’ve picked out a few that I’ve found useful, but you may find another great use for NirCmd after reading through the examples. Ho scelto un paio che ho trovato utile, ma si potrebbe trovare un altro grande utilità per NirCmd dopo la lettura attraverso gli esempi. This was written and tested in WindowsXP but it should also work in other versions of Windows. Questo è stato scritto e testato in WindowsXP, ma dovrebbe funzionare anche in altre versioni di Windows.
To get started download Per iniziare il download NirCmd , the link is all the way at the bottom of the page. , Il link è il modo in cui tutti in fondo alla pagina. Next unzip the contents to a folder; I would suggest something simple such as C:\NirCmd\ if you use something else, substitute that wherever you see C:\NirCmd\ Avanti decomprimere il contenuto di una cartella; vorrei suggerire qualcosa di semplice come ad esempio C: \ NirCmd \ se si utilizza qualcosa di diverso, sostituire, ovunque tu che vedere C: \ NirCmd \
Note: NirCmd may display as a virus, spyware, or potentially unwanted program on some anti-virus and anti-spyware programs (Sophos is one) this is because certain viruses and spyware include and use NirCmd to perform actions on the users PC. Nota: NirCmd può visualizzare come un virus, spyware o potenzialmente indesiderati programma su alcuni anti-virus e programmi anti-spyware (Sophos è uno), questo è dovuto al fatto che alcuni virus e spyware comprendere e utilizzare NirCmd di effettuare azioni sul PC degli utenti. However it is also used by many good programs as well, such as UBCD (which I may cover later), and by itself it poses no risk. Tuttavia è anche utilizzato da molti programmi di buona, come UBCD (che può coprire più tardi), e di per sé, non presenta rischi.
The simplest way to use NirCmd is in the command line, however this article will concentrate on writing commands out in a file and using desktop shortcuts and Launchy to run them. Il modo più semplice per utilizzare NirCmd è in linea di comando, tuttavia questo articolo si concentrerà sulla scrittura di comandi in un file e desktop utilizzando scorciatoie e Launchy di gestione dei medesimi. For a simple test, open up Notepad or your text-editor of choice and type in (or copy and paste): Per una semplice prova, aprire il Blocco note o il vostro editor di testo di scelta e nel tipo (o copia e incolla):
C:\nircmd\nircmd.exe monitor off C: \ nircmd \ nircmd.exe monitor spento
Save the file in your C:\NirCmd\ folder as MonitorOff.bat the exact name does not matter, but it should describe what it does. Salvare il file nella cartella C: \ NirCmd \ cartella MonitorOff.bat il nome esatto non importa, ma dovrebbe descrivere ciò che fa.

click to enlarge clicca per ingrandire
Now you should have MonitorOff.bat sitting in the C:\NirCmd\ folder, double-click on it to put your monitor into power save mode (you can move the mouse or hit a key to turn it back on). Ora si dovrebbe avere MonitorOff.bat seduta nella cartella C: \ NirCmd \ cartella, fare doppio clic su di esso per mettere il monitor in modalità di risparmio energetico (è possibile spostare il mouse o premere un tasto per riaccenderlo). You can then place a shortcut to MonitorOff.bat on your desktop, to do so Right-Click on MonitorOff.bat and select Send To and click Desktop (Create Shortcut) . È quindi possibile inserire un collegamento a MonitorOff.bat sul desktop, per farlo, fate clic destro sulla MonitorOff.bat e selezionare Invia a e fare clic su Desktop (crea collegamento). Another method I like to use is to simply select MonitorOff.bat with a single-click then hold down Alt and drag the file onto the desktop. Un altro metodo mi piace è quello di usare semplicemente selezionare MonitorOff.bat con un solo clic quindi tenere premuto Alt e trascinare il file sul desktop.

click to enlarge clicca per ingrandire
If you look carefully in the above screenshot, you’ll notice another .bat file titled wait2 screenshot.bat this one is a set of two commands to wait two seconds and then take a screenshot which is saved as shot.png in C:\Nircmd this comes in handy to capture a screenshot when you can’t just hit Ctrl + Print Screen which I what I normally use for screenshots. Se guardate attentamente nella schermata di cui sopra, si noterà un altro file. Bat intitolato wait2 screenshot.bat questo uno è un insieme di due comandi di aspettare due secondi e poi prendere uno screenshot che viene salvato come shot.png in C: \ Nircmd questo è utile per catturare una schermata, quando non è possibile premere CTRL + Print Screen che quello che ho io di solito uso per gli screenshots. Here is what the file contains: Ecco cosa contiene il file:
C:\nircmd\nircmd.exe cmdwait 2000 savescreenshot “C:\Nircmd\shot.png” C: \ nircmd \ nircmd.exe cmdwait 2000 savescreenshot "C: \ Nircmd \ shot.png"
Next up is a useful desktop shortcut to mute and un-mute the sound. Next up è un utile collegamento sul desktop per disattivare e riattivare il suono. In a new file enter: In un nuovo file digitare:
C:\nircmd\nircmd.exe cmdshortcut “~$folder.desktop$” “Mute Unmute” mutesysvolume 2 C: \ nircmd \ nircmd.exe cmdshortcut "folder.desktop ~ $ $" "Disattiva Attiva" mutesysvolume 2
Save the file in C:\NirCmd as Mute Unmute.bat you can also call change the “Mute Unmute” above in quotes to something else (the example on the website has “Switch Volume”), this will change the name of the desktop shortcut, you can also change any shortcut name later by right-clicking on it and selecting Rename . Salvare il file nella cartella C: \ NirCmd come Mute Unmute.bat è anche possibile chiamare il cambiamento "Disattiva Attiva" di cui sopra tra virgolette a qualcosa di diverso (l'esempio sul sito web è "Switch tomo"), questo cambierà il nome del desktop collegamento, è possibile anche cambiare nome qualsiasi collegamento più tardi facendo clic destro su di esso e selezionare Rinomina. Now double-click on Mute Unmute.bat to create a new shortcut on your desktop that should mute the sound the first time it is double-clicked and un-mute it the next. Ora fare doppio clic su Disattiva Unmute.bat per creare un nuovo collegamento sul desktop che dovrebbe disattivare l'audio la prima volta si è fatto doppio clic e riattivare il prossimo. If the default icon for this is too boring for you, right-click the Mute Unmute shortcut on your desktop and select Properties , select the Shortcut tab on top and click the Change Icon button. Se l'icona di default per questo è troppo noioso per voi, cliccate con il tasto destro Disattiva Attiva il collegamento sul desktop e selezionare Proprietà, selezionare la scheda Collegamento in alto e fare clic sul pulsante Cambia icona. I personally like the speaker and music note icon as seen in the screenshot below. Personalmente, come la parola e la musica nota icona come si è visto nello screenshot seguente.
![]()
click to enlarge clicca per ingrandire
The question that originally led me to NirCmd was someone wanting a quick way to switch resolutions, as she wanted a lower resolution for older programs. La domanda che inizialmente mi hanno indotto a NirCmd è stato qualcuno che desiderano un modo rapido per passare risoluzioni, come voleva una risoluzione più bassa per i vecchi programmi. For this example I will use 800×600 with 32 bit colors as the lower resolution and 1280×1024 with 32 bit colors as the higher resolution, although you can substitute other resolutions such as 1024×768 or widescreen resolutions such as 1440×900 and 1680×1050. Per questo esempio io uso 800 × 600 con colori a 32 bit come la risoluzione più bassa e 1280 × 1024 con colori a 32 bit come la più elevata risoluzione, anche se è possibile sostituire altre risoluzioni come 1024 × 768 o risoluzioni widescreen, come 1440 × 900 e 1680 × 1050. The last number, color depth should be 32 unless you are running very old programs and want 16 bit colors. L'ultimo numero, la profondità di colore deve essere a 32 a meno che non si sono molto vecchi programmi e si desidera colori a 16 bit. First, for the lower resolution file enter: In primo luogo, per la risoluzione più bassa file inserisci:
C:\nircmd\nircmd.exe cmdshortcut “~$folder.desktop$” “800×600″ setdisplay 800 600 32 C: \ nircmd \ nircmd.exe cmdshortcut "folder.desktop ~ $ $" "800 × 600" setdisplay 800 600 32
and save it in C:\NirCmd as 800×600 Resolution.bat e salvarlo nella cartella C: \ NirCmd come 800 × 600 Resolution.bat

click to enlarge clicca per ingrandire
Moving on to the larger resolution, make a new file with: Passando alla risoluzione più grande, fare un nuovo file con:
C:\nircmd\nircmd.exe cmdshortcut “~$folder.desktop$” “1280×1024″ setdisplay 1280 1024 32 C: \ nircmd \ nircmd.exe cmdshortcut "folder.desktop ~ $ $" "1280 × 1024" setdisplay 1280 1024 32
and save it in C:\NirCmd as 1280×1024 Resolution.bat e salvarlo nella cartella C: \ NirCmd come 1280 × 1024 Resolution.bat
Now you can double-click each of these to make desktop shortcuts called 800×600 and 1280×1024, double-click on the desktop shortcuts to quickly resize the desktop. Ora è possibile fare doppio clic su ciascuno di questi a rendere Scrivania collegamenti chiamato 800 × 600 e 1280 × 1024, fare doppio clic sul desktop i collegamenti alle rapidamente ridimensionare il desktop. As in the Mute Unmute example, you can change the icons to whatever you feel like, here are two I picked out of the default set, I’ll have to remember to do a post on custom icons in the future. Come nel Disattiva Attiva esempio, è possibile cambiare le icone per qualunque cosa tu voglia, qui sono due ho scelto di impostare il valore predefinito, mi dovrete ricordarvi di fare un post su icone personalizzate in futuro.
![]()
Before moving into some more advanced command sets, I’ll explain how this can work with Launchy. Prima di passare in alcuni più avanzato set di comando, I'll spiegare come questo può funzionare con Launchy. Launchy should already scan the desktop for shortcuts and therefore find the examples that created desktop shortcuts. Launchy dovrebbero già eseguire la scansione del computer per i collegamenti e quindi trovare gli esempi che ha creato i collegamenti del desktop. However, you may not want to have all commands as desktop shortcuts, or you may want to type up commands on the fly. Tuttavia, è possibile che non vuole avere a disposizione tutti i comandi come scorciatoie desktop, o puoi digitare i comandi fino al volo. To do either of these, the C:\NirCmd folder should be added to Launchy’s catalog. Per fare una di queste, la cartella C: \ NirCmd cartella deve essere aggiunto al catalogo della Launchy. Bring up Launchy, Right-Click on it and select Options . Portate fino Launchy, fate clic destro su di esso e selezionare Opzioni. Here click on the Catalog tab and hit the + (plus) button under Directories to add C:\Nircmd while it is selected type *.bat in the text-entry box under file types and hit the + button right underneath it. Qui fare clic sulla scheda di catalogo e premi il + (più) sotto Repertori pulsante per aggiungere C: \ Nircmd mentre è selezionato il tipo *. bat nel testo-voce casella di tipi di file e premete il pulsante + sotto a destra. Do the same thing for *.exe, then make sure the box next to Executables is checked. Fare la stessa cosa per *. exe, quindi assicurarsi che la casella di controllo accanto al file eseguibili sia selezionata.

click to enlarge clicca per ingrandire
Now click Rescan Catalog and Launchy should add all of your .bat files in the folder as well as nircmd.exe . Ora scegliere Ripeti Catalogo e Launchy dovrebbe aggiungere tutti i tuoi. Bat nella cartella così come nircmd.exe. To try this, bring up Launchy and type: Per provare questo, portare Launchy e digitate:
MonitorOff
It should find the MonitorOff.bat before you finish typing, hit Enter to run it and it should turn off your monitor. Si dovrebbe trovare il MonitorOff.bat prima di terminare la tipizzazione, premete Invio per eseguirlo e dovrebbe spegnere il monitor. All of the other .bat files created in C:\Nircmd should also be accessible by typing their filename in Launchy. Tutti gli altri. Bat creato in C: \ Nircmd dovrebbero essere accessibili anche da loro digitando il nome del file in Launchy.

You can also enter an NirCmd command directly from Launchy, in the Launchy box type: Puoi anche inserire un comando NirCmd direttamente da Launchy, Launchy nella casella Tipo di trasporto:
nircmd
Next hit the Tab key and you should get nircmd -> in the launchy window. Avanti premere il tasto Tab e si dovrebbe ottenere nircmd -> nella finestra launchy. You can then type any Nircmd command after the -> È possibile digitare qualsiasi Nircmd comando dopo il ->
nircmd -> screensaver nircmd -> salvaschermo
will turn on the screensaver. si accende lo screensaver.
There are a lot of commands and examples to try out, especially since you can have multiple commands in a single .bat file. Ci sono un sacco di comandi ed esempi di provare, soprattutto perché si possono avere comandi multipli in un unico file. Bat. Next up is a quick set of commands to tidy up Windows and logoff (good for a computer that has multiple users): Next up è una rapida serie di comandi per riordinare il Windows e di logoff (buoni per un computer che ha più utenti):
C:\nircmd\nircmd.exe emptybin C: \ nircmd \ nircmd.exe emptybin
C:\nircmd\nircmd.exe clipboard clear C: \ nircmd \ nircmd.exe appunti chiaro
C:\nircmd\nircmd.exe exitwin logoff C: \ nircmd \ nircmd.exe exitwin logoff
Save this as Logoff.bat in C:\NirCmd\ and when you are ready , running it will empty all of the recycling bins, clear the computer and log off the current user, be sure to only test this once you want to logoff as it will close all of your windows including unsaved documents. Salva come Logoff.bat in C: \ NirCmd \ e quando si è pronti, la sua esecuzione sarà vuoto tutti i bidoni di riciclaggio, chiaro il computer e accedere al largo l'utente corrente, assicurarsi di questa prova solo una volta che si desidera logoff come sarà di chiudere tutte le finestre compresi i documenti non salvati.
Note: Depending on your Launchy settings you may have to Rescan Catalog after making new .bat files or desktop shortcuts. Nota: A seconda delle vostre impostazioni Launchy potrebbe essere necessario Ripeti Catalogo dopo aver effettuato nuovi. Bat o desktop tasti di scelta rapida. This option is on the General tab on the bottom as Minutes between catalog updates . Questa opzione è nella scheda Generale sul fondo come processo verbale tra gli aggiornamenti del catalogo. If you have it set to 0 which is for manual updates only , then you will have to rescan the catalog whenever you want new commands and shortcuts added to Launchy. Se hai impostato su 0, che è per gli aggiornamenti manuali solo, quindi si dovrà fare la scansione catalogo ogni volta che si desidera nuovi comandi e le scorciatoie aggiunto a Launchy.
There are many more commands to cover, including ones that manipulate files, enter text, or even move and click the mouse. Ci sono molti altri comandi a coprire, compresi quelli che manipolare file, immettere il testo, o anche spostare e fare clic con il mouse. Please feel free to leave a comment requesting additional help or examples. Non esitate a lasciare un commento richiedere ulteriori informazioni o esempi.






















{ 5 comments… read them below or (5 ... leggere i commenti qui sotto o add one aggiungere uno } )
Haven’t had a good look at this yet, but I think it would be more useful with AutoHotKey than Launchy. Non hanno avuto una buona occhiata a questo, ma credo che sarebbe più utile con AutoHotKey di Launchy.
Great tuto man!! Tuto grande uomo!
Thanks! Grazie!
hey great even works with my launch app called key launch but i can only get monitor off and empty recycl;e bin to work any reasons why i cant get the resolution one to work and can you put more on hey grandi opere anche con il mio lancio app chiamato chiave di lancio ma posso solo monitor spento e vuoto recycl; e bin a lavorare qualsiasi motivi per cui i cant ottenere la risoluzione uno al lavoro e si può mettere più in
Good tutorial, but is there any way to Switch User? Buon tutorial, ma non vi è alcun modo per Cambia utente? Launchy itself will only allow you to Log Off so hoping NirCmd can add this. Launchy sé solo vi permettono di accedere in modo Off sperando NirCmd può aggiungere questo.
Colin:
I’m not sure off-hand why the monitor script is not working, I would check which resolutions you can use in your monitor’s display settings (right-click on the desktop and select properties and select the settings tab). Non sono sicuro fuori mano perché il monitor script non funziona, vorrei verificare che le risoluzioni si può usare nel vostro monitor le impostazioni di visualizzazione (clic destro sul desktop e selezionare Proprietà e selezionare la scheda Impostazioni). Then try to set it to one of those resolutions with the command C:\NirCmd\nircmd.exe setdisplay 1024 768 32 or whatever resolution you need. Poi tenta di impostare queste cose a uno solo di tali risoluzioni con il comando C: \ NirCmd \ nircmd.exe setdisplay 1024 768 32 o qualsiasi risoluzione si ha bisogno.
Ian:
I didn’t see any commands to switch user in the NirCmd documentation, however it is an active project where they will add new commands with each new version, so I would contact the dev team about getting it added for the next version. Non ho visto tutti i comandi per cambiare utente in NirCmd documentazione, tuttavia si tratta di un progetto attivo dove aggiungere nuovi comandi con ogni nuova versione, così vorrei contattare il dev team su come è aggiunto per la prossima versione. http://www.nirsoft.net/contact-new.html
Leave a Comment Lascia un tuo commento