How to integrate NirCmd with Launchy to enhance productivity كيفية دمج NirCmd مع Launchy لتعزيز الانتاجية

by Scott Strain on October 20, 2008 عن طريق الضغط على سكوت 20 تشرين الاول / اكتوبر ، 2008

ويندوز

NirCmd is a freeware utility that allows you to perform tasks from the command line, .bat files, desktop shortcuts and even هي مجانية المرافق التي تسمح لك لأداء المهام من سطر الأوامر ،. الخفافيش الملفات ، واختصارات سطح المكتب وحتى 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 ولكن ينبغي أيضا العمل في إصدارات أخرى من ويندوز.

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\ unzip المقبل لمحتويات مجلد ؛ أود أن أقترح شيء بسيط مثل جيم : \ NirCmd \ إذا كنت تستخدم شيئا آخر ، أن تحل محل أينما كنت انظر جيم : \ 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 قد عرض على النحو فيروس ، برامج التجسس ، أو يحتمل أن البرنامج غير المرغوب فيها على بعض مكافحة الفيروسات وبرامج مكافحة برامج التجسس (سوفوس هو واحد) وذلك لأن بعض الفيروسات وبرامج التجسس وتشمل استخدام 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 جيم : \ 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. حفظ الملف في حسابك جيم : \ 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 جيم : \ 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. أحب طريقة أخرى لاستخدام هو ببساطة اختيار MonitorOff.bat مع احد انقر ثم ابق ضاغطا على البديل واسحب ملف onto سطح المكتب.


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 هذا واحد هو مجموعة من الأوامر لاثنين من اثنين من الانتظار ثانية ، وبعد ذلك تتخذ لقطة للشاشة التي تم توفيرها في shot.png جيم : \ Nircmd هذا يأتي في متناول الشخص في الحصول على لقطة للشاشة عندما لا يمكنك أن تصل فقط Ctrl + الشاشة التي يمكن طبعها أنا ما كنت عادة استخدام لقطات الشاشة. Here is what the file contains: هنا هو ملف يتضمن ما يلي :

C:\nircmd\nircmd.exe cmdwait 2000 savescreenshot “C:\Nircmd\shot.png” جيم : \ nircmd \ nircmd.exe cmdwait 2000 savescreenshot "جيم : \ 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 جيم : \ nircmd \ nircmd.exe cmdshortcut "~ دولار folder.desktop دولار" "البكم Unmute" 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 . حفظ الملف في جيم : \ 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. لهذا المثال سأستخدم 800 × 600 مع ألوان 32 بت انخفاض والقرار 1280 × 1024 مع 32 بت ألوان ارتفاع القرار ، على الرغم من يمكنك بديلا قرارات أخرى مثل 1024 × 768 أو واسعة مثل القرارات 900 و 1440 × 1680 × 1050. The last number, color depth should be 32 unless you are running very old programs and want 16 bit colors. عدد آخر ، ينبغي أن يكون عمق اللون 32 إلا إذا كنت تقوم بتشغيل برامج قديمة جدا ونريد ألوان 16 بت. First, for the lower resolution file enter: أولا ، لانخفاض دخول ملف القرار :

C:\nircmd\nircmd.exe cmdshortcut “~$folder.desktop$” “800×600″ setdisplay 800 600 32 جيم : \ nircmd \ nircmd.exe cmdshortcut "~ دولار folder.desktop دولار" "800 × 600" setdisplay 800 600 32

and save it in C:\NirCmd as 800×600 Resolution.bat واحفظه في جيم : \ NirCmd كما 800 × 600 Resolution.bat


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 جيم : \ nircmd \ nircmd.exe cmdshortcut "~ دولار folder.desktop دولار" "1280 × 1024" setdisplay 1280 1024 32

and save it in C:\NirCmd as 1280×1024 Resolution.bat واحفظه في جيم : \ NirCmd كما 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. يمكنك الآن انقر نقرا مزدوجا فوق كل من هذه لجعل سطح المكتب اختصارات دعا 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 المثال ، يمكنك تغيير الرموز إلى ما كنت أشعر ، وأنا هنا هي اختيار اثنين من مجموعة التقصير ، سآخذ لنتذكر ما بعد الى القيام على الرموز المخصصة في المستقبل.

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. القيام بأي من هذه ، وجيم : \ NirCmd مجلد وينبغي أن يضاف إلى Launchy 'sكتالوج. 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. هل نفس الشيء ل*. إكس ، ثم التأكد من المربع المجاور لللتنفيذ ويتم التثبت.


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. 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. وينبغي أن تجد MonitorOff.bat قبل الانتهاء من الطباعة ، وضرب أدخل لإداراتها وأنه ينبغي إيقاف تشغيل الشاشة. All of the other .bat files created in C:\Nircmd should also be accessible by typing their filename in Launchy. كل من الأخرى. الخفافيش الملفات التي أنشئت في جيم : \ Nircmd ينبغي أيضا أن يحصل على بكتابة اسم الملف في Launchy.

You can also enter an NirCmd command directly from Launchy, in the Launchy box type: يمكنك أيضا إدخال مباشرة NirCmd القيادة من Launchy ، Launchy في المربع نوع :

nircmd

Next hit the Tab key and you should get nircmd -> in the launchy window. ضرب المقبل علامة التبويب الرئيسية ويجب عليك الحصول على nircmd --> في launchy نافذة. 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. هناك الكثير من الأمثلة لقيادة وتجربة ، وخاصة منذ يمكنك متعددة في قيادة واحدة. الخفافيش الملف. Next up is a quick set of commands to tidy up Windows and logoff (good for a computer that has multiple users): المقبل حتى يمثل وسيلة سريعة ومجموعة من قيادة ينظم ويندوز والانقطاع (جيدة لجهاز كمبيوتر متعددة المستخدمين) :

C:\nircmd\nircmd.exe emptybin جيم : \ nircmd \ nircmd.exe emptybin
C:\nircmd\nircmd.exe clipboard clear جيم : \ nircmd \ nircmd.exe الحافظة واضحة
C:\nircmd\nircmd.exe exitwin logoff جيم : \ 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 جيم : \ NirCmd \ وعندما تكون مستعدا ، على التوالي سيكون خاليا من جميع صناديق إعادة تدوير ، واضحة الكمبيوتر وسجل قبالة المستخدم الحالي ، ومن المؤكد أن لهذا الاختبار مرة واحدة فقط تريد الانقطاع على النحو أنها ستغلق جميع النوافذ الخاصة بك بما فيها من وثائق يتم حفظها.

Note: Depending on your Launchy settings you may have to Rescan Catalog after making new .bat files or desktop shortcuts. ملاحظة : وتبعا للإعدادات الخاصة بك Launchy قد تضطر إلى إعادة مسح المنتجات الجديدة بعد. الخفافيش ملفات أو اختصارات سطح المكتب. 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 -- Weby الأساسية والحيل بتذييل إلى ملف نص
  • How to Enhance Video with the FFDShow Decoder كيفية تعزيز فيديو مع FFDShow فك الرموز
  • 10 Windows Application Launchers compared and reviewed طلب إطلاق ويندوز 10 مقابل واستعرض
  • 3 Tools to increase iWeb functionality 3 أدوات لزيادة وظائف iWeb
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! الحصول على مساعدة بسيطة مثل هذه الدروس واحد في صندوق الوارد في بريدك الإلكتروني كل يوم -- لالحرة! Just enter your email address below: فقط أدخل عنوان البريد الإلكتروني الخاص بك أدناه :

    You can always opt out of this email subscription at any time. يمكنك دائما أن تختار الانسحاب من الاشتراك في هذا البريد الإلكتروني في أي وقت.


    Bookmark and Share المرجعية والاسهم

    { 5 comments… read them below or (5 تعليقات... أو أقل من قراءتها add one إضافة واحد } )

    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!! توتو رجل عظيم!!
    Thanks! شكرا!

    3 3 colin 10.20.08 at 2:29 pm كولن 10.20.08 في الساعة 2:29

    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 ؛ ه بن لعمل أي أسباب لماذا أنا غير قادر على الحصول على قرار واحد للعمل ويمكن لكم على وضع المزيد ؛)

    4 4 Ian 10.21.08 at 7:24 am إيان 10.21.08 في الساعة 7:24

    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). لست متأكدا من خارج ومن جهة رصد لماذا لا يعمل البرنامج النصي ، وأود أن فحص القرارات التي يمكنك استخدامها في رصد الخاص بك 'sالاعدادات (حق انقر على سطح المكتب واختيار خصائص واختيار علامة التبويب إعدادات). 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. ثم في محاولة لأنها لمجموعة واحدة من تلك القرارات مع القيادة جيم : \ 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

    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> يمكنك استخدام هذه العلامات والصفات هتمل : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code> <deldatetime=""> <em><i><qcite=""> <strike><strong>