If you want the command prompt cmd widnow to stay open after executing the last command in batch file –you should write cmd /k command at the end of your batch file. This command will prevent the command prompt window from closing and you'll get the prompt back for giving more commands in the cmd window.
Depending on how you are running the command, you can put /k after cmd to keep the window open. Simply adding cmd /k to the end of your batch file will work too.
Finally I got it SOLVED: Go to HKLM\Software\Microsoft\Command Processor\ or HKEY_CURRENT_USER\Software\Microsoft\Command Processor\ or HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\ For some reason there was AUTORUN key with "EXIT" inside. Remove the AutoRun key and everything should went back to normal.
Execution of a batch script can also be paused by pressing CTRL-S (or the Pause|Break key) on the keyboard, this also works for pausing a single command such as a long DIR /s listing. Pressing any key will resume the operation.
Determine whether a background program or a software conflict causes the command prompt to appear and disappear. Go to the search box > type MSConfig. Select System Configuration > go to the Services tab. Select and put a check mark on "Hide all Microsoft services" > Click Disable all.
To close or exit the Windows command line window, also referred to as command or cmd mode or DOS mode, type exit and press Enter . The exit command can also be placed in a batch file.
To close or exit the Windows command line window, also referred to as command or cmd mode or DOS mode, type exit and press Enter . The exit command can also be placed in a batch file. Alternatively, if the window is not fullscreen, you can click the X close button in the top-right corner of the window.
While in the command prompt menu, you can view any files on your computer in a text-only format by typing in the location (usually a disk) and the file name (including any extensions). Type. cd.. into the prompt. After you press Enter, this command tells the program to navigate back to the previous folder.
Command prompt popping up can be an indicator of an infected system as well. Lots of malware and viruses tend to download information from the internet. A lot of the times they also disguise as legitimate services.
Make it a “double”, please! Subway is offering some meaty savings for those looking for an extra boost of energy by doubling the protein on their sandwich. Customers can double the meat on a Footlong Sub or Protein Bowl for just $2 more at participating locations.
You can redeem 100 points for a free hot drink, 200 for a snack, 500 for a 6" sub, flatbread or salad, and 1,000 for a 12-inch sub or flatbread. You have to use your Subcard at least once a year, or your points will be cancelled, although your card will continue to work.