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

Split paths one per line

Discussion in 'T&T - TPIPE' started by Phileosophos, Dec 20, 2012.

  1. Phileosophos

    Joined:
    Aug 28, 2008
    Messages:
    86
    Likes Received:
    2
    This is a handy little TPIPE command:

    I use it as an alias via the command:

    So I can use the path command to get the usual unreadable output or I can use paths to get a nice line-by-line dump.
     
  2. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    cool. this works also with tccle:
    Code:
    (system)  C:\...\TCCLE13x64 >ver
     
    TCC LE  13.04.62 x64  Windows 7 [Version 6.1.7601]
     
    (system)  C:\...\TCCLE13x64 >alias ep
    for /t";" %p in (%path) echo %p
     
    (system)  C:\...\TCCLE13x64 >ep
    C:\Program Files\JPSoft\TCCLE13x64
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    C:\oracle\oraclexe\app\oracle\product\10.2.0\server\bin
    C:\Windows\system32
    C:\Windows
    C:\Windows\System32\Wbem
    C:\Windows\System32\WindowsPowerShell\v1.0\
    C:\Program Files\Intel\DMIX
    C:\Program Files (x86)\Sysinternals
    C:\Program Files (x86)\Tools\WinMerge
    C:\Users\Frank\AppData\Local\Smartbar\Application\
    
     
  3. Juanma Barranquero

    Joined:
    Jun 26, 2008
    Messages:
    38
    Likes Received:
    1
    Also this:
    Code:
    C:\...\conf> echo %@replace[;,^n,%PATH]
    C:\Windows\system32
    C:\Windows
    C:\Windows\System32\Wbem
    C:\Windows\System32\WindowsPowerShell\v1.0
    C:\bin\ATI Technologies\ATI.ACE\Core-Static
    C:\bin\Tools
    C:\bin64\JPSoft\TCMD
    
     
    JohnQSmith likes this.
  4. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    I really like this last one the most from Juanma Barranquero:
     

Share This Page