How do i run cmd with commands already executed!


  1. Posts : 1
    HP Windows 10 (64 bit)
       #1

    How do i run cmd with commands already executed!


    OK say I wanted to run a cmd (I know I will have to use notepad so im pretty much asking the command and ending of the command ex. CMD.bat)

    For those that want to go ahead and be really helpful im looking to open cmd and do "color 4"

    Simple
      My Computer


  2. Posts : 14,019
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #2

    Usually running commands [similar to the older DOS .bat/batch files] requires putting in a path to the executable file in a program as in the old Win3.1 command of c:\windows\win.exe to start Windows but that's just a simple example. Note: Win3.x ran on top of a DOS [Disk Operating System] program.
      My Computers


  3. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    Hybrid said:
    For those that want to go ahead and be really helpful im looking to open cmd and do "color 4"
    Welcome to TenForums @Hybrid

    What is it you are actually trying to achieve here? Do you want your command prompt to always be red text whenever it opens?

    You know you can right click on the title bar and select Properties. There you can select font, size, text and background color and much more. These changes persist and will apply each time you open the command prompt using that particular shortcut or Start menu item. And if you create multiple shortcuts on your desktop, each can have it's own custom appearance.

    Customize Command Prompt Colors in Windows
    (and see the 'related tutorials' section at the end for other properties)


    If you want to be really clever, you can add your own shortcuts for cmd.exe to Start menu and give each one it's own color.

    Add or Remove Items for All Apps in Start menu in Windows 10
      My Computers


 

  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 19:12.
Find Us




Windows 10 Forums