- Jan
- 617
- 15
So, pizzaman really got me going with DESCRIBE trying to find an answer for his question. This is my third DESCRIBE post today because of it.
I really don't like the format of DIR /Z so I've been working on an alias to make a DIR look like the usual DIR except with descriptions included. Here's what I've got so far...
and it works fine.
(here it comes...)
But, sometimes it doesn't show the ".." directory. I've been able to narrow down the problem to when TCC is showing an 8.3 representation of the folder I'm in.
I really don't like the format of DIR /Z so I've been working on an alias to make a DIR look like the usual DIR except with descriptions included. Here's what I've got so far...
Code:
alias d=`pdir /(dy-m-d th:m z @if[%%@len[%%@descript[*]] gt 0,%%@if[%%@len[%%@filename[*]] ge 23,%%@left[21,%%@filename[*]]+ %%@descript[*],%%@filename[*]%%@repeat[ ,%%@max[0,%%@eval[25-%%@len[%%@filename[*]]]]]%%@descript[*]],%%@filename[*]]) /k /m /h /d`
(here it comes...)
But, sometimes it doesn't show the ".." directory. I've been able to narrow down the problem to when TCC is showing an 8.3 representation of the folder I'm in.
HTML:
[C:\Documents and Settings\winuser\temp]
13:38:24 $ d
Volume in drive C is unlabeled Serial number is 58b8:a853
Directory of C:\Documents and Settings\winuser\temp\*
2012-10-29 13:34 <DIR> .
2012-10-29 13:34 <DIR> ..
2012-10-29 13:35 11 fileA.tmp Description of FileA.tmp
2012-10-29 13:37 11 fileB.tmp
2012-10-29 13:36 11 fileC.tmp Description of FileC.tmp
2012-10-29 13:37 11 fileD.tmp
2012-10-29 13:36 11 fileE.tmp Description of FileE.tmp
2012-10-29 13:37 11 fileF.tmp
2012-10-29 12:28 13 ThisIsAnotherReallyLongFileName.txt
2012-10-29 13:38 13 ThisIsAReallyLongFile+ Description of ThisIsAReallyLongFileName.txt
92 bytes in 8 files and 2 dirs 32,768 bytes allocated
37,647,593,472 bytes free
[C:\Documents and Settings\winuser\temp]
13:38:25 $ cd ~/temp
[C:\Docume~1\winuser\temp]
13:40:59 $ d
Volume in drive C is unlabeled Serial number is 58b8:a853
Directory of C:\Docume~1\winuser\temp\*
2012-10-29 13:34 <DIR> .
2012-10-29 13:34 <DIR>
2012-10-29 13:35 11 fileA.tmp Description of FileA.tmp
2012-10-29 13:37 11 fileB.tmp
2012-10-29 13:36 11 fileC.tmp Description of FileC.tmp
2012-10-29 13:37 11 fileD.tmp
2012-10-29 13:36 11 fileE.tmp Description of FileE.tmp
2012-10-29 13:37 11 fileF.tmp
2012-10-29 12:28 13 ThisIsAnotherReallyLongFileName.txt
2012-10-29 13:38 13 ThisIsAReallyLongFile+ Description of ThisIsAReallyLongFileName.txt
92 bytes in 8 files and 2 dirs 32,768 bytes allocated
37,647,794,176 bytes free