• WinExec应用程序的设计是一个非常小的工具,目的是作为一个发射器用于其他应用程序通过热键。

    通常,当你指定一个热键应用程序,它只会让你推出的一个实例应用程序通过热键。 任何进一步的按键只是导致在第一个实例越来越活跃。 虽然这是很大的,在许多情况下,它有时可以是一个真正的不便。

    WinExec允许你绕过这个问题通过指定它如应用和实际应用作为参数。 由于WinExec退出后尽快已经启动的程序问题,随后按键将导致一个新的实例所需的应用程序。

    一个例子说超过一万的话他们说,因此,这里去。 说你想要能够推出几个记事本,经Ctrl-N.你将创建一个快捷方式:

    WinExec Notepad.exe

    然后分配Ctrl-N作为键用于这种快捷方式。

    另一方面,如果你想要的每一个记事本开放了某些文件,你想而创建的捷径:

    WinExec Notepad.exe "我的textfile.txt"

    注意到使用引号文件/参与的空间。 这种技术可以用于应用程序的名称及其参数,例如:

    WinExec"一些application.exe"载"我config"

  • के WinExec आवेदन डिजाइन किया गया था होना करने के लिए एक बहुत छोटा सा उपकरण का इरादा है कि एक लांचर के रूप में अन्य अनुप्रयोगों के लिए HotKeys के माध्यम से.

    सामान्य रूप से, जब आप निर्दिष्ट एक हॉटकी के लिए एक आवेदन यह केवल आप की अनुमति लांच करने के लिए एक उदाहरण के आवेदन के माध्यम से हॉटकी है । किसी भी आगे हॉटकी प्रेस सिर्फ परिणाम पहले उदाहरण में सक्रिय होता जा रहा है । हालांकि इस महान है, कई मामलों में, यह कभी कभी हो सकता है एक असली असुविधा होती है ।

    WinExec की अनुमति देता है आप करने के लिए इस समस्या के आसपास काम यह निर्दिष्ट करने के द्वारा आवेदन के रूप में, और वास्तविक आवेदन के रूप में मानकों करने के लिए. के बाद से WinExec से बाहर निकालता है के रूप में जल्द ही के रूप में यह शुरू किया है प्रश्न में आवेदन, बाद में हॉटकी प्रेस में परिणाम होगा की एक नई आवृत्ति वांछित आवेदन है ।

    एक उदाहरण के लिए कहते हैं और अधिक से अधिक एक हजार शब्दों में वे कहते हैं, तो यहाँ जाता है. कहते हैं कि आप चाहते हैं करने के लिए शुरू करने में सक्षम हो कई notepads के माध्यम से Ctrl-एन आप तो एक शॉर्टकट बनाने के लिए:

    WinExec Notepad.exe

    और तब असाइन Ctrl-एन के रूप में हॉटकी के लिए इस शॉर्टकट.

    यदि दूसरे हाथ पर आप चाहते हैं करने के लिए है प्रत्येक नोटपैड खोलने के लिए एक निश्चित फ़ाइल है, तो आप चाहते हैं के बजाय शॉर्टकट बनाने के लिए:

    WinExec Notepad.exe "मेरे textfile.txt"

    नोटिस के उपयोग के आसपास उद्धरण चिह्नों filenames/मानकों के साथ उन में रिक्त स्थान है. इस तकनीक का इस्तेमाल किया जा सकता है के लिए आवेदन के नाम के रूप में अच्छी तरह के रूप में अपने मानकों, जैसे:

    WinExec "कुछ application.exe" /"मेरी config"

  • The WinExec application was designed to be a very small tool that is intended as a launcher for other applications via HotKeys.

    Normally, when you specify a HotKey for an application it will only allow you to launch one instance of the application via the HotKey. Any further HotKey presses just result in the first instance becoming active. While this is great in many cases, it can sometimes be a real inconvenience.

    WinExec allows you to work around this issue by specifying it as the application, and the real application as parameters to it. Since WinExec exits as soon as it has launched the application in question, subsequent HotKey presses will result in a new instance of the desired application.

    An example says more than a thousand words they say, so here goes. Say you want to be able to launch several notepads via Ctrl-N. You would then create a shortcut to:

    WinExec Notepad.exe

    and then assign Ctrl-N as the HotKey for this shortcut.

    If on the other hand you want to have each notepad open a certain file, you'd instead create the shortcut to:

    WinExec Notepad.exe "My textfile.txt"

    Notice the use of quotation marks around filenames/parameters with spaces in them. This technique can be used for the name of the application as well as its parameters, e.g.:

    WinExec "Some application.exe" /load "my config"