PDIR has trouble processing filenames with embedded percent sign

May 20, 2008
3,515
4
Elkridge, MD, USA
TCC 11.00.33 Windows XP [Version 5.1.2600]

I have many old files archived from the days when MS "expand" expected the 3rd character of the file extension of compressed files to be the percent sign %. Using the command below for such files results in TCC errors:

pdir/(z r dymd thmsd @inode[*] 3@links[*] fpn) E:\ESF\DISKETTE\0026\ENG.LI%

TCC: (Sys) The system cannot find the file specified.
"%@inode[E:\ESF\DISKETTE\0026\ENG.LI]"

The underlying problem is in the passing of the filename to the @INODE function.

Rex, I hope you can solve this problem!
--
Steve
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Sun, 15 Nov 2009 16:13:23 -0600, Steve Fábián <> wrote:

|I have many old files archived from the days when MS "expand" expected the 3rd character of the file extension of compressed files to be the percent sign %.

I don't remember that. MS examples from DOS 5 and Windows 3 all show the likes
of MSDOS.SY_.
--
- Vince
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
> TCC 11.00.33 Windows XP [Version 5.1.2600]
>
> I have many old files archived from the days when MS "expand" expected the
> 3rd character of the file extension of compressed files to be the percent
> sign %. Using the command below for such files results in TCC errors:
>
> pdir/(z r dymd thmsd @inode[*] 3@links[*] fpn)
> E:\ESF\DISKETTE\0026\ENG.LI%
>
> TCC: (Sys) The system cannot find the file specified.
> "%@inode[E:\ESF\DISKETTE\0026\ENG.LI]"
>
> The underlying problem is in the passing of the filename to the @INODE
> function.
>
> Rex, I hope you can solve this problem!

Unlikely I can do anything about that. (And I agree with Vince; that is not
standard MS naming.)

It took 15 years for you to notice this?

Rex Conn
JP Software
 
May 20, 2008
3,515
4
Elkridge, MD, USA
rconn wrote:
| Unlikely I can do anything about that. (And I agree with Vince;
| that is not standard MS naming.)
|
| It took 15 years for you to notice this?

Sorry, indeed it was not from MS. The example is from an old Logitech
Mouseware distribution diskette.

COPY and MOVE have no trouble with the filenames, when they are used in
wildcards. I tried to use PDIR to catalog all my drives, including the file
identifier returned by @INODE[] in the catalog, and that's the only time the
problem shows up. I think that PDIR should be able to pass any legal
filename to whatever functions it calls during the reporting process.
--
Steve
 
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
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
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
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
J History file load hangs if file has complete garbage in it... Support 1
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
Peter Murschall CMDebug 26.01.37 has problems with Alias Support 21
D TCC has much more elegant ways for usebackq. What ways? Support 12
D Pasting Unicode data has different behavior on TCC and CMD Support 2
D [cosmetic] Shortcut for v24 still has v23 in its comment Support 1
D Envar _tcexit has value, even with /IX startup parameter Support 0

Similar threads