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

Maybe Not So Hard Pdir Question

Discussion in 'Support' started by jackw19, Mar 19, 2011.

  1. jackw19

    Joined:
    Feb 25, 2011
    Messages:
    6
    Likes Received:
    0
    My almost dream directory listing is aliased as:

    pdir /(-20.20fnq) /( dd-m-y th:m zc -i) * /D/K/M/Og/P

    This gives both long filenames and descriptions. Don't like long names, but they are an unfortunate fact of life now.

    Maybe someone can suggest a way to implement the following changes:

    1) I'd like to separately left justify the filenames and prefixes, separated by space(s) and no dot. This functionality is available with /J in dir, but apparently not in pdir. And even if it was, /J uses shortened names. Undoubtedly there are TCC functions that parse filenames and put them back together in the desired format, but I have not mastered this arcane art.

    2) When a long description wraps, the tail starts at the beginning of the next line. Is there a convenient way to line up the wrap with the first column of the description field?

    Thanks in advance.
     
  2. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    564
    Likes Received:
    8
    Here are some parsing commands added to part 1) of your question.

    Note:
    Filenames and extensions will be truncated to 20 and 4 characters, respectively, if they are longer. In addition from my own testing, filenames longer than 19 characters with spaces in them will be truncated to 19 characters with a leading quote but no trailing quote.
    Code:
    pdir /(-20.20@quote[%%@name[*]]) /(-4.4@ext[*]) /( dd-m-y th:m zc -i) * /D/K/M/Og/P
    
     

Share This Page