- Dec
- 9
- 0
I'm a lapsed 4NT/TCMD v5 user evaluating the latest TCC with a view to upgrading, mainly due to the new PDIR command.
So far not so good, however. I'm at my wits end trying to make PDIR work with NTFS filenames that contain back quotes.
For example if you do something like this:
pdir /(@right[-2,*])
Then you'll get a "No closing quote" error on filenames containing a back quote, and I can't find a solution except using "setdos /x-7" to turn off quote processing. However that creates other problems with filenames that contain spaces, for example:
setdos /x-7
pdir /(@attrib[*])
Will then print nothing for filenames containing spaces (probably due them being quoted), although most similar functions do still work, such as:
setdos /x-7
pdir /(@sfn[*])
So:
1) how do I change my PDIR command lines so that passing '*' to functions doesn't error on filenames with back ticks?
2) how do I get @attrib to work with "setdos/x-7" in force, with filenames containing spaces? Not using it is not an option.
So far not so good, however. I'm at my wits end trying to make PDIR work with NTFS filenames that contain back quotes.
For example if you do something like this:
pdir /(@right[-2,*])
Then you'll get a "No closing quote" error on filenames containing a back quote, and I can't find a solution except using "setdos /x-7" to turn off quote processing. However that creates other problems with filenames that contain spaces, for example:
setdos /x-7
pdir /(@attrib[*])
Will then print nothing for filenames containing spaces (probably due them being quoted), although most similar functions do still work, such as:
setdos /x-7
pdir /(@sfn[*])
So:
1) how do I change my PDIR command lines so that passing '*' to functions doesn't error on filenames with back ticks?
2) how do I get @attrib to work with "setdos/x-7" in force, with filenames containing spaces? Not using it is not an option.