pdir /(fq) not working

May 31, 2008
26
0
TCMD 10.00.46

It looks like the new /(fq) option on pdir is not working. pdir /(f) works, but if I add the q, I get no output from the pdir command.

[C:\temp\temp]dir

Volume in drive C is VistaOS Serial number is 1a79:1110
Directory of C:\temp\temp\*

[C:\temp\temp]dir

Volume in drive C is VistaOS Serial number is 1a79:1110
Directory of C:\temp\temp\*

2/02/2009 16:03 0 abc.txt
2/02/2009 16:03 0 def ghi.txt
0 bytes in 2 files and 2 dirs
8,117,493,760 bytes free

[C:\temp\temp]pdir /(f) *
abc.txt
def ghi.txt

[C:\temp\temp]pdir /(fq) *

[C:\temp\temp]
 
May 20, 2008
603
0
Sammamish, WA
I get the same thing.
I also noticed an interesting thing testing /(fN) vs. /(fn). I had a long
filename, but it had no short filename. The long filename was created with
mklnk. It looks like Windows/TCC does not auto-create a short filename
during the link process. I'm not complaining about that, but it did make me
wonder and investigate for a few minutes while I wondered whether pdir had a
problem.

On Sun, Feb 1, 2009 at 7:12 PM, Stephen Worthington
<>wrote:


> TCMD 10.00.46
>
> It looks like the new /(fq) option on pdir is not working. pdir /(f)
> works, but if I add the q, I get no output from the pdir command.
>
> [C:\temp\temp]dir
>
> Volume in drive C is VistaOS Serial number is 1a79:1110
> Directory of C:\temp\temp\*
>
> 2/02/2009 16:03 <DIR> .
> 2/02/2009 16:03 <DIR> ..
> 2/02/2009 16:03 0 abc.txt
> 2/02/2009 16:03 0 def ghi.txt
> 0 bytes in 2 files and 2 dirs
> 8,117,493,760 bytes free
>
> [C:\temp\temp]pdir /(f) *
> abc.txt
> def ghi.txt
>
> [C:\temp\temp]pdir /(fq) *
>
> [C:\temp\temp]
>
>
>
>
>



--
Jim Cook
2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Sunday.
 
May 20, 2008
603
0
Sammamish, WA
Since "dir /x" didn't show anything, nor did my own timedir when looking at
the Find structure, I suspected as much.
Mostly , I hoped to put some more information out there in case somebody
else got confused also. Thankfully both @LINKS and my program showed 2, and
that was when I became pretty certain it wasn't a flaw in PDIR.

On Mon, Feb 2, 2009 at 10:40 AM, rconn <> wrote:


> ---Quote (Originally by Jim Cook)---
> I get the same thing.
> I also noticed an interesting thing testing /(fN) vs. /(fn). I had a long
> filename, but it had no short filename. The long filename was created with
> mklnk. It looks like Windows/TCC does not auto-create a short filename
> during the link process.
> ---End Quote---
>
> That's Windows, not TCC.
>
>
>
>
>



--
Jim Cook
2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Sunday.
 
May 31, 2008
26
0
On Mon, 02 Feb 2009 20:46:27 -0600, you wrote:


>---Quote---
>> TCMD 10.00.46
>>
>> It looks like the new /(fq) option on pdir is not working. pdir /(f)
>> works, but if I add the q, I get no output from the pdir command.
>>
>> [C:\temp\temp]pdir /(fq) *
>---End Quote---
>The 'q' option requires you to also specify the P, p, N, or n option.
>
>Rex Conn
>JP Software

Ok, so it is just a problem with the documentation then. I have never
used PDIR /(f) before, so I had no idea from the help file that I
needed one of the other options too. PDIR /(f) does work and seems to
be the same as PDIR /(fn), so I think it would be best if PDIR /(fq)
did the same as PDIR /(fnq).

BTW Thanks a lot for the q option. It makes it much easier to create
ad hoc batch files to do things to a list of files. I have frequently
found myself using my text editor to add the quotes manually.
 
Similar threads
Thread starter Title Forum Replies Date
M WAD PDir not working correctly... Support 5
M How to? "PDir" not working the way the I _thought _ the documentation said it does… Support 8
Phileosophos PDIR to list filenames without extensions? Support 2
vefatica PDIR and streams Support 1
vefatica PDIR with fixed-width unqualified filename? Support 2
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
thedave pdir /s Support 2
Emilio III pdir /f switch Support 1
D pdir ignores pm Support 2
WadeHatler pdir broken in 19.1 for directories with spaces Support 1
vefatica WAD Nested variable expansion in PDIR's @function[*]? Support 13
mfarah More on pdir's options: /(fq) Support 5
mfarah How to? Getting pdir to display relative paths. Support 2
S PDIR and @LABEL questions Support 4
M How to? PDir on multiple wildcard patterns... Support 2
A pdir function usage Support 3
T How to? dir/pdir - 2nd level down only Support 7
JohnQSmith PDIR and descriptions Support 21
G WAD PDIR @IF bug, @WORD bug Support 8
S WAD PDIR: files with percent sign % in name cause not listing other files in directory Support 9
S WAD PDIR ignores exclusion ranges Support 1
M PDir format question... Support 3
S WAD /Sn mishandled in DIR and PDIR, possibly elsewhere Support 15
S Fixed GPF in PDIR Support 3
S PDIR issue Support 1
M PDir causing Take Command/TCC to crash... Support 6
M A "PDir" issue... Support 16
M A simple question related to the "dir" (and "pdir") commands... Support 5
J pdir /b1 issue Support 20
M Missing PDir option... Support 5
J Maybe Not So Hard Pdir Question Support 1
S PDIR fails in 12.10.55 Support 3
J V12 PDIR failure Support 1
S PDIR command causes GPF Support 5
D pdir inconsistency Support 4
S PDIR has trouble processing filenames with embedded percent sign Support 3
P PDIR woes Support 0
gschizas pdir crashes horribly in one specific folder Support 5
S PDIR question Support 2
R Colored directory listing bug with pdir. Support 1
nickles Bias in PDIR Support 5
F pdir problem Support 3
D can PDIR list full filepaths of docs in a nested folder? Support 13
twaterloo FolderMonitor for the 1st time not working Support 5
Tim Rowe NTFS Descriptions not working Support 13
J Batcomp still not working for me in TCMD27 Support 1
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
M Why did BEEP just quit working? Support 12
cgunhouse SETLOCAL not working in BDEBUGGER Support 9
nickles ANSI Colors Windows 7 no longer working Support 6

Similar threads