How to integrate NirCmd with Launchy to enhance productivity Launchyはどのように生産性を高めるためにNirCmdを統合する

by Scott Strain on October 20, 2008 スコットひずみ 2008年 10月 20日にで

窓

NirCmd is a freeware utility that allows you to perform tasks from the command line, .bat files, desktop shortcuts and evenその場合は、コマンドラインから、 。 batファイル、デスクトップのショートカットやタスクを実行するためのフリーウェアのユーティリティです Launchy . There’sa large list of commands on the NirCmd website. NirCmdウェブサイトでは、大規模なコマンドの一覧があります。 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.私は、私が選ばれているいくつかの役に立つことを確認いたしましたが、あなたの例を読んだ後NirCmd別の偉大な使用を見つけることがあります。 This was written and tested in WindowsXP but it should also work in other versions of Windows.これを書いているとWindowsXPでテストが、また、 Windowsの他のバージョンで動作する必要があります。

To get started downloadダウンロードを開始するには NirCmd , the link is all the way at the bottom of the page.は、リンクは、ページの下部にあるすべての方法です。 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\次のフォルダに解凍内容;私はウのような何かを簡単にすることをお勧めします: \ NirCmd \場合は、どこに 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.注記: NirCmd一部のウイルス対策、反(ソフォスは、スパイウェアのプログラムを1つのウイルス、スパイウェア、または潜在的に不要なプログラムとして)ため、特定のウイルスやスパイウェアなどを使用してユーザーのPC上でのアクションを実行するNirCmdこれは表示することがあります。 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.しかしそれも多くの良いプログラムでも、 UBCDなど、 (私はそれ以降)をカバーすることがあり、単独で使用されていないリスクを投げ掛けている。

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. NirCmdを使用する最も簡単な方法は、コマンドラインでは、しかし、この資料をファイルにコマンドを作成して実行すると、デスクトップのショートカットを使ってLaunchyに集中する。 For a simple test, open up Notepad or your text-editor of choice and type in (or copy and paste):単純なテストでは、 メモ帳を開いたり、テキストを選択し(またはコピー&ペースト)インディアナタイプの編集:

C:\nircmd\nircmd.exe monitor offはC : \ nircmd \ nircmd.exeを監視する

Save the file in your C:\NirCmd\ folder as MonitorOff.bat the exact name does not matter, but it should describe what it does.内のファイルをC : \ NirCmd \フォルダMonitorOff.batの正確な名前として保存問題ではないが、それをやっていることを説明する必要があります。


click to enlargeクリックして拡大する

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).これでMonitorOff.batに座っているのは、 C : \ NirCmd \フォルダをダブルクリックしてモニターの電源をオンにモードを保存する必要があります(場合は、マウスを移動したり、それをを有効にするキーを押す) 。 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) .次にデスクトップ上MonitorOff.batので、右を行うへのショートカットを配置することができますMonitorOff.batクリックし、 [ デスクトップの送信を選択してください( )のショートカットを作成します。 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.私はもう1つのメソッドを使用するだけでは、シングルクリックのAltを押したままにしてMonitorOff.batを選択するとデスクトップ上にファイルをドラッグしています。


click to enlargeクリックして拡大する

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.慎重場合は、上記のスクリーンショットを見ると、別のに気付くでしょう。 バット wait2 screenshot.batこのファイルの2つのコマンドの1つのタイトルを2秒待つとし、 C言語でshot.pngとして保存されているスクリーンショットを撮るには設定されています: \ Nircmdこの便利でスクリーンショットを打つことができないときはCtrlキーを押しながら+プリントスクリーン私は、通常のスクリーンショットをキャプチャするものを使用している。 Here is what the file contains:ここでは、どのファイルが含まれています:

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.次のページをミュートし、国連は便利なデスクトップのショートカットは、音をミュートされています。 In a new file enter:新しいファイルに入力してください:

C:\nircmd\nircmd.exe cmdshortcut “~$folder.desktop$” “Mute Unmute” mutesysvolume 2はC : \ nircmd \ nircmd.exe cmdshortcut " 〜 $ $ folder.desktop " "ミュートUnmute " 2 mutesysvolume

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 . C言語でファイルを保存: \ NirCmdミュートUnmute.batとしても、ウェブサイト上の"ミュートUnmute "引用符で上記に何か他のもの(例えば、変更を呼び出すことができます" " )スイッチ、ボリュームが、これはデスクトップの名前を変更するショートカットの場合は、保存を右クリックし、名前の変更を選択して任意のショートカット名を変更することができます 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.ミュートUnmute.batをダブルクリックして今すぐクリックして 、国連は、サウンドがミュート初めてダブルされている必要がありますデスクトップ上に新しいショートカットを作成することは、次のミュート。 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.このあまりにも退屈なあなたのためを右クリックし、 [プロパティ]を選択 、デスクトップ上のショートカットをミュートUnmuteトップ上のショートカット ]タブをクリックし、アイコンの変更 ]ボタンのデフォルトのアイコンを選択している。 I personally like the speaker and music note icon as seen in the screenshot below.私は個人的には、スピーカーや音楽注記アイコンの下のスクリーンショットのように見られる。


click to enlargeクリックして拡大する

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.と彼女は古いプログラムのための低い解像度をNirCmdに、最初に問題を決議したメインスイッチを簡単にしたいと思っていた。 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.私は、低い解像度、 1280 × 1024の高解像度と32ビット色で、あなたはワイドスクリーンの解像度1024 × 768以上のような他の解像度を置き換えることができますとして32ビットの色800 × 600と1440 × 900などが使用されますこの例では1680 × 1050 。 The last number, color depth should be 32 unless you are running very old programs and want 16 bit colors.非常に古いプログラムを実行している場合を除き、 16ビットの色を変えたいの最後の数、色深度32しなければならない。 First, for the lower resolution file enter:まず、低解像度のファイルを入力してください:

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保存するとC \ 800 × 600としてResolution.bat NirCmd


click to enlargeクリックして拡大する

Moving on to the larger resolution, make a new file with:上の大きな解像度に移動すると、新しいファイルを作成する:

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保存するとC \ 1280 × 1024としてResolution.bat NirCmd

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.これでダブルクリックしてそれぞれのデスクトップのショートカットを作成するに800 × 600に電話をかけて1280 × 1024 、ダブルクリックしてデスクトップのショートカットをデスクトップ上ですぐにサイズを変更する。 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. Unmute例では、ミュートとして、あなたは、こちらの2つを選んだ私は、デフォルトの設定のうち、私は将来的にカスタムアイコン上の投稿を行うには覚えている必要があるでしょうにあなたのようなものを感じるのアイコンを変更することができます。

Before moving into some more advanced command sets, I’ll explain how this can work with Launchy.いくつかのより高度なコマンドセットに移動する前に、私はどのように仕事ができるLaunchy説明します。 Launchy should already scan the desktop for shortcuts and therefore find the examples that created desktop shortcuts. Launchy既にスキャンするためのショートカットをデスクトップの例のショートカットをデスクトップに作成して下さい。 However, you may not want to have all commands as desktop shortcuts, or you may want to type up commands on the fly. To do either of these, the C:\NirCmd folder should be added to Launchy’s catalog.これらのいずれかを行うには、は、 C : \ NirCmdフォルダLaunchyのカタログに追加する必要があります。 Bring up Launchy, Right-Click on it and select Options . Launchy 、右クリックで選択してオプションを持ってきて 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.ここでは、カタログ]タブをクリックし、 + (プラスヒット )ボタン追加するディレクトリの下にウ: \ Nircmd中には、テキストを入力*.バット選択されているファイルの種類の下に入力ボックスとボタンの右下にある+を打つ。 Do the same thing for *.exe, then make sure the box next to Executables is checked.ボックスをクリックし、実行可能ファイルの横にあるチェックされるようにするか、 *. exeファイルは、同じようにね


click to enlargeクリックして拡大する

Now click Rescan Catalog and Launchy should add all of your .bat files in the folder as well as nircmd.exe . カタログとLaunchyをクリックして再スキャンするだけでなく、 nircmd.exeすべてのフォルダにしてください。 batファイルを追加する必要があります To try this, bring up Launchy and type:この挑戦するには、 Launchyとタイプを持ち出す:

MonitorOff

It should find the MonitorOff.bat before you finish typing, hit Enter to run it and it should turn off your monitor.入力を完了する前には、それを実行してEnterキーを打つと、モニタの電源を切る必要がありますMonitorOff.batを見つける必要があります。 All of the other .bat files created in C:\Nircmd should also be accessible by typing their filename in Launchy.すべての他のバットをC言語で作成したファイル: \ NircmdもLaunchyでのファイル名を入力してアクセスできるようにする必要があります。

You can also enter an NirCmd command directly from Launchy, in the Launchy box type:またLaunchyから直接、 LaunchyボックスタイプでNirCmdのコマンドを入力することができます:

nircmd

Next hit the Tab key and you should get nircmd -> in the launchy window.次は、 Tabキーを押してnircmdを得る必要があります-> l aunchyウィンドウで。 You can then type any Nircmd command after the ->後Nircmd任意のコマンドを入力することができます->

nircmd -> screensaver nircmd ->スクリーンセーバー

will turn on the screensaver.スクリーンセーバが有効になります。

There are a lot of commands and examples to try out, especially since you can have multiple commands in a single .bat file.このコマンドと例を試してみることがたくさん、特にあなたが1つ。 batファイルで複数のコマンドを持つことができます。 Next up is a quick set of commands to tidy up Windows and logoff (good for a computer that has multiple users):次は、 Windowsおよびログオフの上を片付けるためのコマンドを簡単に設定されている(つまり、複数のユーザーされているコンピュータ用)良い:

C:\nircmd\nircmd.exe emptybinはC : \ nircmd \ nircmd.exe emptybin
C:\nircmd\nircmd.exe clipboard clearはC : \ nircmd \ nircmd.exeクリップボードをクリア
C:\nircmd\nircmd.exe exitwin logoffはC : \ nircmd \ nircmd.exe exitwinログオフ

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. Logoff.batとしてCでこの割引率: \ NirCmd \と準備できているときには、明確なコンピュータと、現在のユーザーをログオフゴミ箱を空にするすべてのリサイクルを実行しているだけに、この一度ログオフをテストしてください保存されていない文書を含むすべてのWindowsを終了します。

Note: Depending on your Launchy settings you may have to Rescan Catalog after making new .bat files or desktop shortcuts. Note :あなたのLaunchyの設定を再スキャンカタログに新しい。 bat ファイルやデスクトップのショートカットを作成後に応じて必要な場合があります。 This option is on the General tab on the bottom as Minutes between catalog updates .このオプションは、 [ 全般 ]タブに分カタログを更新間の底部にされています。 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.場合は0には、手動で更新をのみ、その後、新しいコマンドやショートカットをしたいときには、カタログを再スキャンする必要があるということです設定しているLaunchyに追加されます。

There are many more commands to cover, including ones that manipulate files, enter text, or even move and click the mouse.あるものは、ファイルを操作テキスト、または入力して移動してマウスをクリックするなどをカバーするために、より多くのコマンドがあります。 Please feel free to leave a comment requesting additional help or examples.お気軽にコメントを追加支援要請を残すかの例に無料。

Related Posts: 関連記事:
  • 5 Desktop Wallpapers that will increase your productivity 5デスクトップの壁紙は、お客様の生産性を高め
  • Launchy - basic Weby tricks and appending to a text file Launchy -基本的なW ebyトリックやテキストファイルを付加する
  • How to Enhance Video with the FFDShow Decoderどのように強化するFFDShowビデオデコーダで
  • 10 Windows Application Launchers compared and reviewed 10 Windowsアプリケーションの起動比べて、見直し
  • How to open and view .cbr and .cbz filesどのように開いて参照してください。 cbrと。 cbzファイル
  • Get Simple Help tutorials just like this one in your email inbox every day - for free!お客様のメールの受信ボックスに毎日-無料で、この1つだけのような簡単なヘルプのチュートリアルを入手! Just enter your email address below:すぐ下にあなたのメールアドレスを入力してください:

    You can always opt out of this email subscription at any time.いつでも、いつでも、このメール購読のオプトアウトすることができます。


    Bookmark and Share ブックマークして共有する

    { 6 comments… read them below or 6以下のコメントを読む... add one 1つ追加 }

    1 1 Peter Gadd 10.20.08 at 5:10 am ピーターガッド 10.20.08で午前5時10

    Haven’t had a good look at this yet, but I think it would be more useful with AutoHotKey than Launchy.が、この時はまだ十分に観察していたんだけど、もっとAutoHotKey Launchyよりも便利だと思う。

    2 2 Enrique エンリケ 10.20.08 at 12:52 pm 10.20.08 12:52時までと

    Great tuto man!!偉大な男tuto ! !
    Thanks!ありがとう!

    3 3 colin 10.20.08 at 2:29 pm 2:29 pmにコリン 10.20.08

    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ねえ、私も非常に重要な発射が開始アプリケーションで動作のみと空のrecyclオフと呼ばれるモニターを得ることができます;メールビンはなぜ働くの解決方法は1つになると隠語詳細を着ることができる任意の理由を仕事に ; )

    4 4 Ian 10.21.08 at 7:24 am 午前7時24で イアン 10.21.08

    Good tutorial, but is there any way to Switch User?チュートリアルでは、グッドしかし、ユーザーの切り替えする方法は何ですか? Launchy itself will only allow you to Log Off so hoping NirCmd can add this. Launchy自体のみを追加することができますので、このNirCmd望んでログオフできるようになります。

    5 5 Scott Strain 10.21.08 at 9:21 am スコットひずみ 10.21.08午前9時21時

    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).私にはよく分からないの手理由は、モニタのスクリプト作業ではないが、私はあなたのモニタの表示設定で(右は、デスクトップを選択してプロパティをクリックし、 [設定]タブを選択してください)を使用して解像度を確認できると思います。 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.それから1つのコマンドはC : \ NirCmd \ nircmd.exe setdisplay 1024 768 32またはどのような決議が必要で、これらの決議に設定してください。

    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.私はNirCmdドキュメント内のユーザーに任意のコマンドスイッチを参照してくださいていないが、しかしそれがそれぞれの新しいバージョンで新しいコマンドを追加するアクティブなプロジェクトなので、それは次のバージョンの追加取得については、開発チームに連絡をしている。 http://www.nirsoft.net/contact-new.html

    6 6 Keba 11.14.08 at 3:13 am Keba 11.14.08で、午前3:13

    I just configured launchy to use the killprocess command, on a window I specify in launchy.私launchyで指定をウィンドウに設定launchyただ、 killprocessコマンドを使用するには、 。
    I used the ‘runner’ plugin for this.私はこのための'ランナー'プラグインを使用します。
    I entered:入力:

    “C:\WINDOWS\system32\nircmd.exe”を" C : \はWindows \ System32 \ nircmd.exe "
    andおよび
    ” killprocess $$.exe” " killprocess $ $した。 exe "

    By using this, i can pretty much do anything, istead of having to write a new batch file for every variable i need changed.これを使うことで、僕はほとんど何でもできる、すべての変数iのための新しいバッチファイルを作成することが必要に変更istead 。

    (oh, and btw, the reason why I put nircmd in system32, is because I can run nircmd command easier from ‘run’, without having to type where it is stored). (オハイオ、ところで、私は理由System32には、 nircmdする'からのコマンドを実行することができますので、簡単に実行nircmd ' 、どこに格納されているタイプすることなく)です。

    Leave a Commentコメントを残しなさい

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> これらのHTMLタグ属性:の<a href=""使用することができますtitle=""> <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite=""> <cite>の<code> <del datetime="">の<em> <i> <q cite=""> <strike> <strong>