How to stop cmd window from closing after running a command line

Started by lawhok

Hi Andrew,
Thank you for your great job!
I need some help. How to make cmd window not to be closed after running command line?
This is the command that I input into "applications": "wmic /node:%0 bios get serialnumber"
This command tell me the remote PC serial number but it is immediately closed and I cannot see the output.

And I also have some request please: if you can add quick access to "Applications" in the option menu.
SoftPerfect Support forum - Andrew avatar image

Re: How to keep cmd window open   21 October 2014, 18:36

For the command prompt to remain open, use this line:
cmd.exe /k wmic /node:%0 bios get serialnumber

Better yet, use this WMI query to have the BIOS serial number displayed in a column
SELECT SerialNumber FROM Win32_BIOS

Here is an example of what it looks like:

SoftPerfect support forum

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********  ********   ********    ******    ******** 
 **    **  **     **  **     **  **    **   **    ** 
     **    **     **  **     **  **             **   
    **     **     **  ********   **   ****     **    
   **      **     **  **         **    **     **     
   **      **     **  **         **    **     **     
   **      ********   **          ******      **     

Message: