pdir returns diff results between tcc and tcmd - one is an error msg

Aug 31, 2009
I have an alias named 'new'. It's purpose is to display the newest files in a directory, similar to *dir /podr, but it displays only enough to fill half the screen. This way I can issue commands to the newest files and still see the list. The problem I am seeing is that it works fine in TCC, but errors out in Take Command. The version I am on is 24.00.35 x64, Windows 10 17134.

The alias is:
alias new=pdir /a: /d /odr /Nm:%@eval[%_rows/2] /(dy.m.d th:m:sd zc a fn) %$

In TCC, the output would look something like this:

C:\zips\p2p\JPSoft\pdir> new
2019.02.15 13:22:49.164 5,700 A__________ pf.txt
2019.02.15 13:15:53.977 1,178 A__________ pd.btm
2019.02.09 13:48:53.251 13,479 A__________ 51750004_10213307498738858_1901841561965035520_n.jpg
2018.01.29 11:34:00.841 221 A__________ SLC_DC-3_01_29081966_1280a.txt
2017.10.13 23:11:30.171 226 A__________ 22459100_1528780607158807_1227950967181260792_o.txt
2017.06.25 15:09:46.763 23,040 A__________ gettags_mingw.exe
2015.09.14 16:09:19.994 777 A__________ setendlocalset.cmd
2015.06.10 12:37:48.865 40,359 A__________ ShowVer.zip
2013.06.07 15:14:59.892 225 A__________ ip.vbs
2010.12.13 14:54:00.000 382 A__________ stripTimeStamp.btm

In TCMD, I simply get this:

C:\zips\p2p\JPSoft\pdir> new
TCC: (Sys) The parameter is incorrect.
Usage : PDIR [/(...) /A[[:][-][+]rhsdaecjot] /D /H /HL /I"text" /KM /N[defjlv] /O[[:][-]adeginorsux] /P /Q /Sn /T[:acw]] [file...]

Any ideas?

Many thanks!
Similar threads
Thread starter Title Forum Replies Date
Phileosophos PDIR to list filenames without extensions? Support 2
vefatica PDIR and streams Support 1
vefatica PDIR with fixed-width unqualified filename? Support 2
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
M WAD PDir not working correctly... Support 5
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
M How to? "PDir" not working the way the I _thought _ the documentation said it does… Support 8
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
S pdir /(fq) not working Support 5
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
F %@regex["^-","-a"] returns 0, "^-" =~ "-a" is false (no match) Support 4
Peter Murschall %_BATTERY returns 0 and others Support 9
M Fixed PSHELL command returns error Support 2
H Fixed DIR /G returns wrong sizes Support 2
D COPY returns ERRORLEVEL 2 Support 5
Steve Pitts WAD @MD5 returns incorrect results for strings Support 2
G WAD _DOS and VER/r returns incorect value Support 2

Similar threads