Batch file change color of specific part of text











up vote
0
down vote

favorite












How could I change the color of a specific part of text within a .bat file? I currently have this:



@echo off
:a
color 2
set /p command=$jp
goto :%command%


which produces a green "$jp". The text I type after that, hovewer is green too, I'd like only the "$jp" to be green and the thing I type in to be white eg. color F










share|improve this question
























  • This question has been asked and answered on StackOverflow: how to have multiple colors in a batch file?. There is no built in command to do this
    – dbenham
    May 4 '14 at 12:53










  • If you want more than batch files can do, try PowerShell.
    – Julian Knight
    May 4 '14 at 17:33















up vote
0
down vote

favorite












How could I change the color of a specific part of text within a .bat file? I currently have this:



@echo off
:a
color 2
set /p command=$jp
goto :%command%


which produces a green "$jp". The text I type after that, hovewer is green too, I'd like only the "$jp" to be green and the thing I type in to be white eg. color F










share|improve this question
























  • This question has been asked and answered on StackOverflow: how to have multiple colors in a batch file?. There is no built in command to do this
    – dbenham
    May 4 '14 at 12:53










  • If you want more than batch files can do, try PowerShell.
    – Julian Knight
    May 4 '14 at 17:33













up vote
0
down vote

favorite









up vote
0
down vote

favorite











How could I change the color of a specific part of text within a .bat file? I currently have this:



@echo off
:a
color 2
set /p command=$jp
goto :%command%


which produces a green "$jp". The text I type after that, hovewer is green too, I'd like only the "$jp" to be green and the thing I type in to be white eg. color F










share|improve this question















How could I change the color of a specific part of text within a .bat file? I currently have this:



@echo off
:a
color 2
set /p command=$jp
goto :%command%


which produces a green "$jp". The text I type after that, hovewer is green too, I'd like only the "$jp" to be green and the thing I type in to be white eg. color F







cmd.exe






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 30 '15 at 8:24









Der Hochstapler

67k48230283




67k48230283










asked May 4 '14 at 11:29









Makerimages

1115




1115












  • This question has been asked and answered on StackOverflow: how to have multiple colors in a batch file?. There is no built in command to do this
    – dbenham
    May 4 '14 at 12:53










  • If you want more than batch files can do, try PowerShell.
    – Julian Knight
    May 4 '14 at 17:33


















  • This question has been asked and answered on StackOverflow: how to have multiple colors in a batch file?. There is no built in command to do this
    – dbenham
    May 4 '14 at 12:53










  • If you want more than batch files can do, try PowerShell.
    – Julian Knight
    May 4 '14 at 17:33
















This question has been asked and answered on StackOverflow: how to have multiple colors in a batch file?. There is no built in command to do this
– dbenham
May 4 '14 at 12:53




This question has been asked and answered on StackOverflow: how to have multiple colors in a batch file?. There is no built in command to do this
– dbenham
May 4 '14 at 12:53












If you want more than batch files can do, try PowerShell.
– Julian Knight
May 4 '14 at 17:33




If you want more than batch files can do, try PowerShell.
– Julian Knight
May 4 '14 at 17:33










2 Answers
2






active

oldest

votes

















up vote
1
down vote













As noted by dbenham's comment, this is discussed by StackOverflow's how to have multiple colors in a batch file?



Reviewing that question, it is about Windows 7. The answers there are all requiring extra software, or using some batch file techniques which look... a bit complex.



However, this question doesn't have an operating system tagged, and I'd like to add new information relevant to a newer operating system. Windows 10 has added support for ANSI Escape sequences.



The beauty of ANSI escape sequences is that using them is conceptually easy. You just need to use ANSI color escape sequences (like those documented at Rob van der Woude's page on ANSI Color) and include them in an ECHO statement.



Unfortunately, using these sequences does get to be a little bit harder due to handling of the 27th ASCII character.



Now, the trick to using ANSI Escape sequences is to send the 27th ASCII character to the screen. The reason this is tricky is because the keyboard key that is most commonly related to ASCII 27 is the Esc key. (This is a main reason why these ANSI Escape sequences are often called "escape" sequences.) And a lot of software has special support for the Esc key. This special support often gets in the way of easily just sending a plain ASCII character number 27.



A lot of times people have worked around this by storing the 27th character in a file, and just copy-and-paste the character as needed. Then, making a file with lots of ANSI sequences involves using the 27th ASCII character a bunch of times, which may be doable using copy-and-paste.



However, there is a better approach. Just get the ASCII character into a file once, and get it into an environment variable. This works well in Windows 10 (and, from what I've read, UNIX terminals). Then you can just refer to that environment variable.



I managed to make a batch file using ssed. The batch file, mentioned some more below, simply sets a variable named ASCII 27 to contain that character.



Furthermore, you can create environment variables. So, instead of something like:



echo %ASCII27%[31m Lava %ASCII27%[37m Cyan/Aqua/Teal text %ASCII27%[33m Sun
echo %ASCII27%[34m Water %ASCII27%[37m Sky %ASCII27%[33m Sun


You can use:



SET ANSIREDFG=%ASCII27%[31m
SET ANSICYANFG=%ASCII27%[37m
SET ANSIYELLOWFG=%ASCII27%[33m
SET ANSIBLUEFG=%ASCII27%[34m
echo %ANSIREDFG% Lava %ANSICYANFG% Cyan/Aqua/Teal text %ANSIYELLOWFG% Sun
echo %ANSIBLUEFG% Water %ANSICYANFG% Sky %ANSIYELLOWFG% Sun


That might not look a whole lot shorter. The advantage here isn't necessarily making the file prettier, but so you can use friendlier names (which you decide upon) like %ANSIBLUEFG% to use BLUE as the Foreground color, instead of needing to remember which color is related to which number. That may be a lot faster to type out and debug (if you don't have the color numbers memorized).



I created a ZIP file containing:




  • OUT.ANS: a sample ANSI file to show this off, containing multiple color layouts per line

  • ANSICOL.BAT: a batch file that was used to create that ANSI file, demonstrating usage of variable names instead of frequent numeric references to the color numbers,

  • ASCII27.BAT: creates the ASCII27 variable containing the escape sequence


This ZIP file is at Windows 10 ANSI demonstration, version 1. The batch file was made to work well with Windows 10. Due to use of “%^%” this might not work quite as wonderfully in some older operating systems (but would probably work as expected if replacing “%^%” with “%  %”).



If you don't feel like messing with environment variables, you could try just copying and pasting the codes straight from the out.ans file (which may work marvelously well, if your text editor doesn't corrupt the ASCII 27 character).






share|improve this answer























  • There is no <BR> after the commands.
    – Black Thunder
    Oct 11 at 2:38












  • @BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
    – TOOGAM
    Oct 11 at 12:50


















up vote
0
down vote













Try this script. This is a good option for 32bit systems. You can print any text with any color in any screen position:



http://pastebin.com/bzYhfLGc






share|improve this answer

















  • 1




    Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
    – fixer1234
    Nov 11 '16 at 16:16











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f749561%2fbatch-file-change-color-of-specific-part-of-text%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













As noted by dbenham's comment, this is discussed by StackOverflow's how to have multiple colors in a batch file?



Reviewing that question, it is about Windows 7. The answers there are all requiring extra software, or using some batch file techniques which look... a bit complex.



However, this question doesn't have an operating system tagged, and I'd like to add new information relevant to a newer operating system. Windows 10 has added support for ANSI Escape sequences.



The beauty of ANSI escape sequences is that using them is conceptually easy. You just need to use ANSI color escape sequences (like those documented at Rob van der Woude's page on ANSI Color) and include them in an ECHO statement.



Unfortunately, using these sequences does get to be a little bit harder due to handling of the 27th ASCII character.



Now, the trick to using ANSI Escape sequences is to send the 27th ASCII character to the screen. The reason this is tricky is because the keyboard key that is most commonly related to ASCII 27 is the Esc key. (This is a main reason why these ANSI Escape sequences are often called "escape" sequences.) And a lot of software has special support for the Esc key. This special support often gets in the way of easily just sending a plain ASCII character number 27.



A lot of times people have worked around this by storing the 27th character in a file, and just copy-and-paste the character as needed. Then, making a file with lots of ANSI sequences involves using the 27th ASCII character a bunch of times, which may be doable using copy-and-paste.



However, there is a better approach. Just get the ASCII character into a file once, and get it into an environment variable. This works well in Windows 10 (and, from what I've read, UNIX terminals). Then you can just refer to that environment variable.



I managed to make a batch file using ssed. The batch file, mentioned some more below, simply sets a variable named ASCII 27 to contain that character.



Furthermore, you can create environment variables. So, instead of something like:



echo %ASCII27%[31m Lava %ASCII27%[37m Cyan/Aqua/Teal text %ASCII27%[33m Sun
echo %ASCII27%[34m Water %ASCII27%[37m Sky %ASCII27%[33m Sun


You can use:



SET ANSIREDFG=%ASCII27%[31m
SET ANSICYANFG=%ASCII27%[37m
SET ANSIYELLOWFG=%ASCII27%[33m
SET ANSIBLUEFG=%ASCII27%[34m
echo %ANSIREDFG% Lava %ANSICYANFG% Cyan/Aqua/Teal text %ANSIYELLOWFG% Sun
echo %ANSIBLUEFG% Water %ANSICYANFG% Sky %ANSIYELLOWFG% Sun


That might not look a whole lot shorter. The advantage here isn't necessarily making the file prettier, but so you can use friendlier names (which you decide upon) like %ANSIBLUEFG% to use BLUE as the Foreground color, instead of needing to remember which color is related to which number. That may be a lot faster to type out and debug (if you don't have the color numbers memorized).



I created a ZIP file containing:




  • OUT.ANS: a sample ANSI file to show this off, containing multiple color layouts per line

  • ANSICOL.BAT: a batch file that was used to create that ANSI file, demonstrating usage of variable names instead of frequent numeric references to the color numbers,

  • ASCII27.BAT: creates the ASCII27 variable containing the escape sequence


This ZIP file is at Windows 10 ANSI demonstration, version 1. The batch file was made to work well with Windows 10. Due to use of “%^%” this might not work quite as wonderfully in some older operating systems (but would probably work as expected if replacing “%^%” with “%  %”).



If you don't feel like messing with environment variables, you could try just copying and pasting the codes straight from the out.ans file (which may work marvelously well, if your text editor doesn't corrupt the ASCII 27 character).






share|improve this answer























  • There is no <BR> after the commands.
    – Black Thunder
    Oct 11 at 2:38












  • @BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
    – TOOGAM
    Oct 11 at 12:50















up vote
1
down vote













As noted by dbenham's comment, this is discussed by StackOverflow's how to have multiple colors in a batch file?



Reviewing that question, it is about Windows 7. The answers there are all requiring extra software, or using some batch file techniques which look... a bit complex.



However, this question doesn't have an operating system tagged, and I'd like to add new information relevant to a newer operating system. Windows 10 has added support for ANSI Escape sequences.



The beauty of ANSI escape sequences is that using them is conceptually easy. You just need to use ANSI color escape sequences (like those documented at Rob van der Woude's page on ANSI Color) and include them in an ECHO statement.



Unfortunately, using these sequences does get to be a little bit harder due to handling of the 27th ASCII character.



Now, the trick to using ANSI Escape sequences is to send the 27th ASCII character to the screen. The reason this is tricky is because the keyboard key that is most commonly related to ASCII 27 is the Esc key. (This is a main reason why these ANSI Escape sequences are often called "escape" sequences.) And a lot of software has special support for the Esc key. This special support often gets in the way of easily just sending a plain ASCII character number 27.



A lot of times people have worked around this by storing the 27th character in a file, and just copy-and-paste the character as needed. Then, making a file with lots of ANSI sequences involves using the 27th ASCII character a bunch of times, which may be doable using copy-and-paste.



However, there is a better approach. Just get the ASCII character into a file once, and get it into an environment variable. This works well in Windows 10 (and, from what I've read, UNIX terminals). Then you can just refer to that environment variable.



I managed to make a batch file using ssed. The batch file, mentioned some more below, simply sets a variable named ASCII 27 to contain that character.



Furthermore, you can create environment variables. So, instead of something like:



echo %ASCII27%[31m Lava %ASCII27%[37m Cyan/Aqua/Teal text %ASCII27%[33m Sun
echo %ASCII27%[34m Water %ASCII27%[37m Sky %ASCII27%[33m Sun


You can use:



SET ANSIREDFG=%ASCII27%[31m
SET ANSICYANFG=%ASCII27%[37m
SET ANSIYELLOWFG=%ASCII27%[33m
SET ANSIBLUEFG=%ASCII27%[34m
echo %ANSIREDFG% Lava %ANSICYANFG% Cyan/Aqua/Teal text %ANSIYELLOWFG% Sun
echo %ANSIBLUEFG% Water %ANSICYANFG% Sky %ANSIYELLOWFG% Sun


That might not look a whole lot shorter. The advantage here isn't necessarily making the file prettier, but so you can use friendlier names (which you decide upon) like %ANSIBLUEFG% to use BLUE as the Foreground color, instead of needing to remember which color is related to which number. That may be a lot faster to type out and debug (if you don't have the color numbers memorized).



I created a ZIP file containing:




  • OUT.ANS: a sample ANSI file to show this off, containing multiple color layouts per line

  • ANSICOL.BAT: a batch file that was used to create that ANSI file, demonstrating usage of variable names instead of frequent numeric references to the color numbers,

  • ASCII27.BAT: creates the ASCII27 variable containing the escape sequence


This ZIP file is at Windows 10 ANSI demonstration, version 1. The batch file was made to work well with Windows 10. Due to use of “%^%” this might not work quite as wonderfully in some older operating systems (but would probably work as expected if replacing “%^%” with “%  %”).



If you don't feel like messing with environment variables, you could try just copying and pasting the codes straight from the out.ans file (which may work marvelously well, if your text editor doesn't corrupt the ASCII 27 character).






share|improve this answer























  • There is no <BR> after the commands.
    – Black Thunder
    Oct 11 at 2:38












  • @BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
    – TOOGAM
    Oct 11 at 12:50













up vote
1
down vote










up vote
1
down vote









As noted by dbenham's comment, this is discussed by StackOverflow's how to have multiple colors in a batch file?



Reviewing that question, it is about Windows 7. The answers there are all requiring extra software, or using some batch file techniques which look... a bit complex.



However, this question doesn't have an operating system tagged, and I'd like to add new information relevant to a newer operating system. Windows 10 has added support for ANSI Escape sequences.



The beauty of ANSI escape sequences is that using them is conceptually easy. You just need to use ANSI color escape sequences (like those documented at Rob van der Woude's page on ANSI Color) and include them in an ECHO statement.



Unfortunately, using these sequences does get to be a little bit harder due to handling of the 27th ASCII character.



Now, the trick to using ANSI Escape sequences is to send the 27th ASCII character to the screen. The reason this is tricky is because the keyboard key that is most commonly related to ASCII 27 is the Esc key. (This is a main reason why these ANSI Escape sequences are often called "escape" sequences.) And a lot of software has special support for the Esc key. This special support often gets in the way of easily just sending a plain ASCII character number 27.



A lot of times people have worked around this by storing the 27th character in a file, and just copy-and-paste the character as needed. Then, making a file with lots of ANSI sequences involves using the 27th ASCII character a bunch of times, which may be doable using copy-and-paste.



However, there is a better approach. Just get the ASCII character into a file once, and get it into an environment variable. This works well in Windows 10 (and, from what I've read, UNIX terminals). Then you can just refer to that environment variable.



I managed to make a batch file using ssed. The batch file, mentioned some more below, simply sets a variable named ASCII 27 to contain that character.



Furthermore, you can create environment variables. So, instead of something like:



echo %ASCII27%[31m Lava %ASCII27%[37m Cyan/Aqua/Teal text %ASCII27%[33m Sun
echo %ASCII27%[34m Water %ASCII27%[37m Sky %ASCII27%[33m Sun


You can use:



SET ANSIREDFG=%ASCII27%[31m
SET ANSICYANFG=%ASCII27%[37m
SET ANSIYELLOWFG=%ASCII27%[33m
SET ANSIBLUEFG=%ASCII27%[34m
echo %ANSIREDFG% Lava %ANSICYANFG% Cyan/Aqua/Teal text %ANSIYELLOWFG% Sun
echo %ANSIBLUEFG% Water %ANSICYANFG% Sky %ANSIYELLOWFG% Sun


That might not look a whole lot shorter. The advantage here isn't necessarily making the file prettier, but so you can use friendlier names (which you decide upon) like %ANSIBLUEFG% to use BLUE as the Foreground color, instead of needing to remember which color is related to which number. That may be a lot faster to type out and debug (if you don't have the color numbers memorized).



I created a ZIP file containing:




  • OUT.ANS: a sample ANSI file to show this off, containing multiple color layouts per line

  • ANSICOL.BAT: a batch file that was used to create that ANSI file, demonstrating usage of variable names instead of frequent numeric references to the color numbers,

  • ASCII27.BAT: creates the ASCII27 variable containing the escape sequence


This ZIP file is at Windows 10 ANSI demonstration, version 1. The batch file was made to work well with Windows 10. Due to use of “%^%” this might not work quite as wonderfully in some older operating systems (but would probably work as expected if replacing “%^%” with “%  %”).



If you don't feel like messing with environment variables, you could try just copying and pasting the codes straight from the out.ans file (which may work marvelously well, if your text editor doesn't corrupt the ASCII 27 character).






share|improve this answer














As noted by dbenham's comment, this is discussed by StackOverflow's how to have multiple colors in a batch file?



Reviewing that question, it is about Windows 7. The answers there are all requiring extra software, or using some batch file techniques which look... a bit complex.



However, this question doesn't have an operating system tagged, and I'd like to add new information relevant to a newer operating system. Windows 10 has added support for ANSI Escape sequences.



The beauty of ANSI escape sequences is that using them is conceptually easy. You just need to use ANSI color escape sequences (like those documented at Rob van der Woude's page on ANSI Color) and include them in an ECHO statement.



Unfortunately, using these sequences does get to be a little bit harder due to handling of the 27th ASCII character.



Now, the trick to using ANSI Escape sequences is to send the 27th ASCII character to the screen. The reason this is tricky is because the keyboard key that is most commonly related to ASCII 27 is the Esc key. (This is a main reason why these ANSI Escape sequences are often called "escape" sequences.) And a lot of software has special support for the Esc key. This special support often gets in the way of easily just sending a plain ASCII character number 27.



A lot of times people have worked around this by storing the 27th character in a file, and just copy-and-paste the character as needed. Then, making a file with lots of ANSI sequences involves using the 27th ASCII character a bunch of times, which may be doable using copy-and-paste.



However, there is a better approach. Just get the ASCII character into a file once, and get it into an environment variable. This works well in Windows 10 (and, from what I've read, UNIX terminals). Then you can just refer to that environment variable.



I managed to make a batch file using ssed. The batch file, mentioned some more below, simply sets a variable named ASCII 27 to contain that character.



Furthermore, you can create environment variables. So, instead of something like:



echo %ASCII27%[31m Lava %ASCII27%[37m Cyan/Aqua/Teal text %ASCII27%[33m Sun
echo %ASCII27%[34m Water %ASCII27%[37m Sky %ASCII27%[33m Sun


You can use:



SET ANSIREDFG=%ASCII27%[31m
SET ANSICYANFG=%ASCII27%[37m
SET ANSIYELLOWFG=%ASCII27%[33m
SET ANSIBLUEFG=%ASCII27%[34m
echo %ANSIREDFG% Lava %ANSICYANFG% Cyan/Aqua/Teal text %ANSIYELLOWFG% Sun
echo %ANSIBLUEFG% Water %ANSICYANFG% Sky %ANSIYELLOWFG% Sun


That might not look a whole lot shorter. The advantage here isn't necessarily making the file prettier, but so you can use friendlier names (which you decide upon) like %ANSIBLUEFG% to use BLUE as the Foreground color, instead of needing to remember which color is related to which number. That may be a lot faster to type out and debug (if you don't have the color numbers memorized).



I created a ZIP file containing:




  • OUT.ANS: a sample ANSI file to show this off, containing multiple color layouts per line

  • ANSICOL.BAT: a batch file that was used to create that ANSI file, demonstrating usage of variable names instead of frequent numeric references to the color numbers,

  • ASCII27.BAT: creates the ASCII27 variable containing the escape sequence


This ZIP file is at Windows 10 ANSI demonstration, version 1. The batch file was made to work well with Windows 10. Due to use of “%^%” this might not work quite as wonderfully in some older operating systems (but would probably work as expected if replacing “%^%” with “%  %”).



If you don't feel like messing with environment variables, you could try just copying and pasting the codes straight from the out.ans file (which may work marvelously well, if your text editor doesn't corrupt the ASCII 27 character).







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 at 22:19









JacobTDC

32




32










answered Oct 2 '17 at 0:56









TOOGAM

11.3k32442




11.3k32442












  • There is no <BR> after the commands.
    – Black Thunder
    Oct 11 at 2:38












  • @BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
    – TOOGAM
    Oct 11 at 12:50


















  • There is no <BR> after the commands.
    – Black Thunder
    Oct 11 at 2:38












  • @BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
    – TOOGAM
    Oct 11 at 12:50
















There is no <BR> after the commands.
– Black Thunder
Oct 11 at 2:38






There is no <BR> after the commands.
– Black Thunder
Oct 11 at 2:38














@BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
– TOOGAM
Oct 11 at 12:50




@BlackThunder : True. Another user edited my answer making some pointless edits, some of which caused the <BR> tags to become visible text (instead of just moving onto the next line), causing the information to become technically incorrect (because it won't work with that version). Thank you for pointing out the problem. I didn't realize that had been done to my answer. And I don't have an option to rollback that edit.
– TOOGAM
Oct 11 at 12:50












up vote
0
down vote













Try this script. This is a good option for 32bit systems. You can print any text with any color in any screen position:



http://pastebin.com/bzYhfLGc






share|improve this answer

















  • 1




    Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
    – fixer1234
    Nov 11 '16 at 16:16















up vote
0
down vote













Try this script. This is a good option for 32bit systems. You can print any text with any color in any screen position:



http://pastebin.com/bzYhfLGc






share|improve this answer

















  • 1




    Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
    – fixer1234
    Nov 11 '16 at 16:16













up vote
0
down vote










up vote
0
down vote









Try this script. This is a good option for 32bit systems. You can print any text with any color in any screen position:



http://pastebin.com/bzYhfLGc






share|improve this answer












Try this script. This is a good option for 32bit systems. You can print any text with any color in any screen position:



http://pastebin.com/bzYhfLGc







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 '16 at 15:55









Lukka86

1




1








  • 1




    Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
    – fixer1234
    Nov 11 '16 at 16:16














  • 1




    Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
    – fixer1234
    Nov 11 '16 at 16:16








1




1




Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
– fixer1234
Nov 11 '16 at 16:16




Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer. Thanks.
– fixer1234
Nov 11 '16 at 16:16


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f749561%2fbatch-file-change-color-of-specific-part-of-text%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

AnyDesk - Fatal Program Failure

QoS: MAC-Priority for clients behind a repeater

Актюбинская область