Batch file hide command window


  1. Posts : 481
    Windows 10 pro 1903 1862.145
       #1

    Batch file hide command window


    I have a batch command to back up a subdirectory:
    xcopy "C:\All\*" "E:\Allback\*" /E /Q

    How can I hide the command window during the execution?
      My Computer


  2. Posts : 4,224
    Windows 10
       #2

    Try this VBscript method (there's undoubtedly a PowerShell equivalent, too): How to run .BAT files invisibly, without displaying the Command Prompt window - The Winhelponline Blog.
    --Ed--
      My Computers


  3. Posts : 481
    Windows 10 pro 1903 1862.145
    Thread Starter
       #3

    Thanks for the lead. I'll go with the minimize option. Don't know why I didn't think of it.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:23.
Find Us




Windows 10 Forums