Xcopy command: a way to color code output result

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
falcios
Posts: 43
Joined: 02 Mar 2017 05:38

Xcopy command: a way to color code output result

#1 Post by falcios » 11 Jul 2017 09:19

When using the xcopy command is there a way to color code the output result:

For example:
If 5 files were copied then color code the output information only.

Thanks in advance.

Aacini
Expert
Posts: 1914
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: Xcopy command: a way to color code output result

#2 Post by Aacini » 11 Jul 2017 10:18

Not the whole output lines, no. But you may add a number in other color before each output line:

Code: Select all

xcopy *.txt destination | findstr /N /A:4E "^"

Of course, this method works with any other command...

Antonio

Post Reply