anggwaponi Posted July 16, 2018 Share Posted July 16, 2018 hi all need help or workaround regarding some short DOS programs using batch files 😇 actually, it's about adding some colors in a batch file i created in which i think i have achieved switching color every after IP address however, my problem it will completely changed the color of the previous IP address being ping using the now present color-assigned to the current IP address i just want is to retain the color of the previous IP address being ping @echo off :beginning ping -n 7 24.120.201.37 color 9 ping -n 7 24.120.201.38 color 3 ping -n 7 24.120.201.49 color 6 goto beginning Link to comment Share on other sites More sharing options...
justsomeguy Posted July 16, 2018 Share Posted July 16, 2018 If you're using Windows 10, it looks like you can change colors by sending an actual escape character followed by a sequence: https://stackoverflow.com/questions/2048509/how-to-echo-with-different-colors-in-the-windows-command-line/38617204#38617204 Link to comment Share on other sites More sharing options...
davej Posted July 16, 2018 Share Posted July 16, 2018 If you're using Windows 10 you can install Linux and use Bash scripts. https://docs.microsoft.com/en-us/windows/wsl/install-win10 Link to comment Share on other sites More sharing options...
anggwaponi Posted July 17, 2018 Author Share Posted July 17, 2018 hello justsomeguy 😉 and hi davej ☺️ at the moment, i'm using Windows 7 in which it's the reason i'm more into DOS commands 😐 i just need to finish this program so at least i have my own customize monitoring system lol 😎 Link to comment Share on other sites More sharing options...
justsomeguy Posted July 17, 2018 Share Posted July 17, 2018 I don't think it's possible on the default command prompt in Windows 7. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now