Windows 10: Having the output from a command within a batch file in a different color

Discus and support Having the output from a command within a batch file in a different color in Windows 10 Gaming to solve the problem; Hello. I am preparing to run the following script on one of our servers: REM Launch the batch files listed below to start the Exceed X environment, REM... Discussion in 'Windows 10 Gaming' started by ahkaplan, Feb 29, 2024.

  1. ahkaplan Win User

    Having the output from a command within a batch file in a different color


    Hello. I am preparing to run the following script on one of our servers: REM Launch the batch files listed below to start the Exceed X environment, REM and log into the mcrs3 server using the putty application. REM List the hostname of the server that is being connected to by this script. hostname echo After you log into the mcrs3 server, run the VM_app1 command. Start Exceedstart.bat Start puttylogin.bat pauseI would like to have the output from the hostname, and the echo statement to be a different color. How can this be done?

    :)
     
    ahkaplan, Feb 29, 2024
    #1

  2. Batch "timeout" command not orking

    I tried it in the command prompt and inside a batch file. I have tried to use this command in many different batch scripts and still get the same error. I am not facing any issues with windows as far as I can tell.

    Some other batch commands do not work either, such as ping or tree, but I can do almost everything else such as create files, insert items into files, display text, and change text color.
     
    fishyydrib, Feb 29, 2024
    #2
  3. chasw98 Win User
    DOS Command issued from Batch file

    I have been running a batch file to list my personal file, and output the listing to a text file in a folder (dv7).

    Folder is on same level as Bat file.

    I then use the text file to compare to files on another computer or external drive, as backup.

    For some reason it no longer works.

    The command in the BAT file is:

    @dir "C:\Users\Sales\Zonal\" /o:gn /s /t:w> "C:\Users\Sales\Desktop\For BATCH\dv7\"

    To demo the problem, I included two additional commands - results is in screen capture.

    @dir "C:\Users\Sales\Zonal\"

    @dir "C:\Users\Sales\Desktop\For BATCH\dv7\"

    @dir "C:\Users\Sales\Zonal\" /o:gn /s /t:w> "C:\Users\Sales\Desktop\For BATCH\dv7\"

    Pause Check for errors

    Pic = note the directories are found. and then not found. Why?


    Having the output from a command within a batch file in a different color 207e9d3e-335f-4e08-b9a9-44e75480e062?upload=true.jpg
     
    chasw98, Feb 29, 2024
    #3
  4. Having the output from a command within a batch file in a different color

    Batch "timeout" command not orking

    Are you going to help me or act like you are, and not. I answered your questions, now give me an answer!
     
    fishyydrib, Feb 29, 2024
    #4
Thema:

Having the output from a command within a batch file in a different color

Loading...
  1. Having the output from a command within a batch file in a different color - Similar Threads - Having output command

  2. Having the output from a command within a batch file in a different color

    in Windows 10 Software and Apps
    Having the output from a command within a batch file in a different color: Hello. I am preparing to run the following script on one of our servers: REM Launch the batch files listed below to start the Exceed X environment, REM and log into the mcrs3 server using the putty application. REM List the hostname of the server that is being connected to by...
  3. Batch File Command???

    in Windows 10 Gaming
    Batch File Command???: I want to run a batch file that starts a backup program, but does not execute the next command until that program completes? How do I do this? https://answers.microsoft.com/en-us/windows/forum/all/batch-file-command/3af2ce6b-ace3-43cb-b6fb-5cbff8998736
  4. Batch File Command???

    in Windows 10 Software and Apps
    Batch File Command???: I want to run a batch file that starts a backup program, but does not execute the next command until that program completes? How do I do this? https://answers.microsoft.com/en-us/windows/forum/all/batch-file-command/3af2ce6b-ace3-43cb-b6fb-5cbff8998736
  5. Command Prompt/ Batch files

    in Windows 10 Ask Insider
    Command Prompt/ Batch files: [ATTACH] when i create a batch file to ping something, it spams the command and throws no response. how do i fix this? https://preview.redd.it/fyy6qwrfx7n61.png?width=256&format=png&auto=webp&s=d55552fdc7a5c297d565617f710992048238660c submitted by /u/xWasss [link]...
  6. With batch file output as internet page?

    in Windows 10 Customization
    With batch file output as internet page?: Some years ago someone showed me how to create a website with a batch file. This was just text, it had no function. Does anyone know how to do this or does anyone know the orders? Mit Batch-Datei Ausgabe als Intenetseite?
  7. DOS Command issued from Batch file

    in Windows 10 Network and Sharing
    DOS Command issued from Batch file: I have been running a batch file to list my personal file, and output the listing to a text file in a folder dv7. I then use the text file to compare to files on another computer or external drive, as backup. For some reason it no longer works. The command in the BAT file...
  8. BATch output to file Heeeelp!

    in Windows 10 Support
    BATch output to file Heeeelp!: Win10 - 64 bit Pro. Version 1909. fully up to date, but obviously with KB4524244 uninstalled. *Sad G'day folks. I have a Win .BAT file that I run every day to copy important data from the days doings from the C:\ VRPC to the D:\VRPC. Below is one command line from the BAT...
  9. Clear command prompt history from within batch.

    in Windows 10 Support
    Clear command prompt history from within batch.: I have a batch, running in "Command Prompt", that prompts for a password. For any number of reasons I can't guarantee that the window will close before exposing that data (arrow keys browse history list). Is there a way to keep the password out of the list or is there a way...
  10. need to run a cmd command as administrator within batch file

    in Windows 10 Customization
    need to run a cmd command as administrator within batch file: Hey, Probable pretty easy for some of you but after a bit of googling I can't quite figure it out. I need to run a command within CMD as administrator within a batch file which then users can just run. Any ideas would be great. Dan...