कमांड प्रॉम्प्ट के माध्यम से एक .exe फ़ाइल चलाना

विषयसूची:

कमांड प्रॉम्प्ट के माध्यम से एक .exe फ़ाइल चलाना
कमांड प्रॉम्प्ट के माध्यम से एक .exe फ़ाइल चलाना

वीडियो: कमांड प्रॉम्प्ट के माध्यम से एक .exe फ़ाइल चलाना

वीडियो: कमांड प्रॉम्प्ट के माध्यम से एक .exe फ़ाइल चलाना
वीडियो: Cleaning a DIRTY MacBook! (How To Safely Clean Your Laptop) - YouTube 2024, मई
Anonim
अधिकांश समय हमारे कार्यक्रम काम करते हैं जैसे कि हमें उनकी आवश्यकता होती है, लेकिन हर बार एक बार आपके पास सहकारी से कम होता है और आप इसे 'रवैया' समस्या को ठीक करने के लिए एक रास्ता तलाशते हैं। आज के सुपर यूज़र क्यू एंड ए पोस्ट में निराशाजनक पाठक को आवश्यक परिणामों को प्राप्त करने में मदद करने के लिए कुछ महान सुझाव हैं।
अधिकांश समय हमारे कार्यक्रम काम करते हैं जैसे कि हमें उनकी आवश्यकता होती है, लेकिन हर बार एक बार आपके पास सहकारी से कम होता है और आप इसे 'रवैया' समस्या को ठीक करने के लिए एक रास्ता तलाशते हैं। आज के सुपर यूज़र क्यू एंड ए पोस्ट में निराशाजनक पाठक को आवश्यक परिणामों को प्राप्त करने में मदद करने के लिए कुछ महान सुझाव हैं।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

सुपर यूज़र रीडर उपयोगकर्ता 41811 9 परिणाम देखने के लिए पर्याप्त प्रोग्राम खोलने के लिए एक रास्ता खोजना चाहता है:

I am trying to run an iteration program. Whenever I click on it, it opens then terminates. When I open the input text file using the program, the iteration completes, then the window instantly closes. How can I:

1. Run it so that the window does not close (and I can see my results)

Or

2. Manage to do the same thing via Command Prompt

I am not super familiar with doing stuff via Command Prompt.

क्या उपयोगकर्ता 41811 9 की प्रोग्राम विंडो को परिणाम देखने के लिए पर्याप्त समय तक खुला रहने का कोई तरीका है?

उत्तर

SuperUser योगदानकर्ता mg30rg, misha256, और Ranayna हमारे लिए जवाब है। सबसे पहले, mg30rg:

You can create a batch file (.bat) containing two lines. The first one is your application’s command line and the second one is “PAUSE”. It will keep the Command Prompt window open until you press a key or close it using the “X” button. The advantage of this solution is that you can have a separate shortcut to the.bat file so that you can either start your program with or without pausing at the finish.

Misha256 से जवाब का पालन करें:

This will leave the Command Prompt window open even after MyApp.exe terminates:

cmd /K “C:SomeFolderMyApp.exe”

You can create a shortcut with the above. This solution works with all console programs and does not require you to go through Command Prompt every time or modify the original.exe file (which you usually cannot).

Incidentally, the /K switch has been around since NT days.

और रणयना से हमारा अंतिम जवाब:

Another way which is quite useful if the path to the.exe file is a complicated one: Open a Command Prompt window and just drag the.exe file into the window. The full path to the.exe file will be pasted into the Command Prompt window and you just have to press Enter. There is no need to cd into any paths.

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

सिफारिश की: