By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!And still much slower than need be due to calling a UDF for every line in the report, instead of an internal operation.
> Would this function execute as fast as "frq" would (where r would be
> the relative path determined internally), without calling any[*] variable
> function?
09:06:36 $ pdir /?
Display information about files and subdirectories in the specified format.
PDIR [/(...) /A[[:][-][+]rhsdaecjot] /D /H /I"text" /KM /N[dej] /O[[:][-]adeginorsu] /P /Sn /T[:
acw]] [file...]
/(...) Fields to display
/A(ttribute select) /N[e] (no error)
/D (colorize) /O(rder)
/H (display .. & .) /P(ause)
/I (match descriptions) /S(ubdirectories)
/K (header) /T date/time field
/M (footer)
fields.> In the standard help file, I did nor see the description of the /()
> Was I just blind?
As a side note, /b is not listed in the command line help of pdir.
*dir /b1 /s seems to work fine, but *pdir /b1 /s displays nothing.
Ah! I finally discovered how relative paths are displayed! I never looked under /B in options - esp. not for PDIR, where I would have expected something like "fr" instead of "fp", or "frn" instead of "fpn" to dislpay the relative paths IN THE SAME PLACE AND MANNER AS FULL PATHS! As is, I still need my @RELPATH function for PDIR if I want to see relative paths... No benefit from this new feature at all!
WAD. Quick help does not include every option of every command.
PDIR [/(...) /A[[:][-][+]rhsdaecjot] /D /H /I"text" /KM /N[dej]
/O[[:][-]adeginorsu] /P /S n /T[:acw]] [file...]
PDIR [ranges] [/A:[attrlist] /B /D /H /I"text" /K /M /N[dej]
/O:[order] /P /S[[+]n] /T:t /(...)] [file...]
> Even if they are not described in the quick help, they should at least
> be enumerated in the summary line so as to show their existence.
> It was the ONLY way I ever interpreted the request for relative paths in
> PDIR
>
> ---Quote---
> > It was the ONLY way I ever interpreted the request for relative paths in
> > PDIR
> ---End Quote---
> But your interpretation was (1) not the same as the original request, and
> (2) never shared.
>
> I don't keep a log of closed requests that somebody might have wanted to
> interpret differently! :-)
>
>
>
>
tags.
[quote="Jim Cook, post: 17360"]What I should have said was this:
I would like to be able to change just the filename part of the PDIR (or
DIR) filename display to include relative paths. I want all the other
columns / fields that would otherwise be displayed to remain the same.
Currently, this is the output:
[html]
C:\Users\cookj\Temp>*dir /s /h /m /k
2011-09-08 09:31 <DIR> sub1
2011-09-08 09:33 <DIR> sub2
2011-09-08 09:30 271 file1
2011-09-08 09:32 <DIR> subsub1
2011-09-08 09:31 1,481 file2
2011-09-08 09:32 6,474 file3
2011-09-08 09:33 214 file4
C:\Users\cookj\Temp>*dir /s /h /m /k sub1
2011-09-08 09:32 <DIR> subsub1
2011-09-08 09:31 1,481 file2
2011-09-08 09:32 6,474 file3
C:\Users\cookj\Temp>*dir /s /h /m /k /(magicswitch)
2011-09-08 09:31:03 <DIR> sub1
2011-09-08 09:33:08 <DIR> sub2
2011-09-08 09:32:58 <DIR> sub1\subsub1
2011-09-08 09:30:55 271 file1
2011-09-08 09:31:03 1,481 sub1\file2
2011-09-08 09:32:58 6,474 sub1\subsub1\file3
2011-09-08 09:33:08 214 sub2\file4
C:\Users\cookj\Temp>*dir /s /h /m /k /(magicswitch) sub1
2011-09-08 09:32:58 <DIR> sub1\subsub1
2011-09-08 09:31:03 1,481 sub1\file2
2011-09-08 09:32:58 6,474 sub1\subsub1\file3
My preference is to eliminate quick help entirely, as it generates way too many complaints for way to little return.
I'm certain that would generate far more complaints! Even CMD.EXE has quick help....
> I'm certain that would generate far more complaints! Even CMD.EXE
> has quick help....
Hardly. Pretty much any decent command line tool responds to a /? with a usage display, featuring details of the parameters and switches supported. Personally I would see nothing wrong with /? opening the standard help (there are plenty of existing examples of that approach) but I suspect that others might object to being pulled out of the console.That might be better phrased as "CMD.EXE *only* has quick help ..."