Can I hide the Microsoft Windows [Version 10.0.19045.2913] information from the CMD window while exe

Discussion in 'Scripting' started by RemixPL1994, May 9, 2023.

  1. RemixPL1994

    RemixPL1994 MDL Junior Member

    Jul 16, 2017
    54
    6
    0
    Hello, can I hide the Microsoft Windows [Version 10.0.19045.2913] information from the CMD console window while executing the script?

    upload_2023-5-9_23-33-43.png

    Of course I already use @ echo OFF at the beginning of the line
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,293
    91,371
    340
    Don't execute ver command? or suppress it with >nul
     
  3. RemixPL1994

    RemixPL1994 MDL Junior Member

    Jul 16, 2017
    54
    6
    0
    Thank you very much. It didn't occur to me to use >NUL 2>&1 for this purpose. I thought some complicated way would be needed.

    It just means that your help and advice is very valuable to me and I need to learn a lot more and longer.