1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Powershell in Take Command - Customizing colors?

Discussion in 'Support' started by electrotype, Jan 1, 2011.

  1. electrotype

    Joined:
    May 5, 2010
    Messages:
    9
    Likes Received:
    0
    Hi,

    I'm just starting using Powershell inside Take command and it works great. I have one question though:

    Is it possible to customize the colors of the output of the "ls" (dir/Get-ChildItem) command so that the directories are displayed using a different color than the regular files?


    Thanks in advance!
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,092
    Likes Received:
    85
    That's a PowerShell question, not TCMD -- you'll have to ask Microsoft. TCMD just displays whatever colors the console app is using; it cannot insert itself into PowerShell and change PowerShell's internal behavior.

    (If you're running TCC in a TCMD tab window, you can colorize directories.)
     
  3. electrotype

    Joined:
    May 5, 2010
    Messages:
    9
    Likes Received:
    0
    Thanks for the reply.

    I'm not sure I'm correct but I think I've heard PowerShell doesn't colorize anything by itself, but some application wrappers were able to intercept the output of that "ls" command and apply some colors before the final output.. I though maybe Take Command was one of them.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,092
    Likes Received:
    85
    You could probably do this with a PowerShell cmdlet. But TCMD doesn't run inside PowerShell (or even in the same session).
     
  5. electrotype

    Joined:
    May 5, 2010
    Messages:
    9
    Likes Received:
    0
    Thanks for the help...
     

Share This Page