- Nov
- 344
- 10
The /(fq) option is rather useful, but... the fact that it only quotes what needs to be quoted can be annoying. For example:
servero 0 C:\Users\Miguel\Documents>pdir /(dymd thms z fpnq)
20130828 165242 <DIR> C:\Users\Miguel\Documents\ChileIndomito
20130828 165516 <DIR> C:\Users\Miguel\Documents\fonts
20130914 214247 <DIR> "C:\Users\Miguel\Documents\Plantillas personalizadas de Office"
20130829 123458 <DIR> C:\Users\Miguel\Documents\viejasPeladoras
....
20131016 175322 116 C:\Users\Miguel\Documents\qc.btm
20131016 183259 2045358 C:\Users\Miguel\Documents\tcc.txt
It's not immediately obvious here, as the formatting is lost, but the quoted file is "pushed" one column to the right.
Trying /("fpn") or /(\"fpn\") doesn't work. Currently, when I need to, I use /(«fpn») but then my friends hate me for it, as they can't type either of those characters. /('fpn') works, but it's rather problematic («'» is a valid character for a file name).
Before posting on the uservoice forum, I'd like to test the waters here first for an idea of mine: a new /(fQ) option that will enclose the filename in quotes always. That way, the output from my example would be:
servero 0 C:\Users\Miguel\Documents>pdir /(dymd thms z fpnQ)
20130828 165242 <DIR> "C:\Users\Miguel\Documents\ChileIndomito"
20130828 165516 <DIR> "C:\Users\Miguel\Documents\fonts"
20130914 214247 <DIR> "C:\Users\Miguel\Documents\Plantillas personalizadas de Office"
20130829 123458 <DIR> "C:\Users\Miguel\Documents\viejasPeladoras"
....
20131016 175322 116 "C:\Users\Miguel\Documents\qc.btm"
20131016 183259 2045358 "C:\Users\Miguel\Documents\tcc.txt"
What do you think?
servero 0 C:\Users\Miguel\Documents>pdir /(dymd thms z fpnq)
20130828 165242 <DIR> C:\Users\Miguel\Documents\ChileIndomito
20130828 165516 <DIR> C:\Users\Miguel\Documents\fonts
20130914 214247 <DIR> "C:\Users\Miguel\Documents\Plantillas personalizadas de Office"
20130829 123458 <DIR> C:\Users\Miguel\Documents\viejasPeladoras
....
20131016 175322 116 C:\Users\Miguel\Documents\qc.btm
20131016 183259 2045358 C:\Users\Miguel\Documents\tcc.txt
It's not immediately obvious here, as the formatting is lost, but the quoted file is "pushed" one column to the right.
Trying /("fpn") or /(\"fpn\") doesn't work. Currently, when I need to, I use /(«fpn») but then my friends hate me for it, as they can't type either of those characters. /('fpn') works, but it's rather problematic («'» is a valid character for a file name).
Before posting on the uservoice forum, I'd like to test the waters here first for an idea of mine: a new /(fQ) option that will enclose the filename in quotes always. That way, the output from my example would be:
servero 0 C:\Users\Miguel\Documents>pdir /(dymd thms z fpnQ)
20130828 165242 <DIR> "C:\Users\Miguel\Documents\ChileIndomito"
20130828 165516 <DIR> "C:\Users\Miguel\Documents\fonts"
20130914 214247 <DIR> "C:\Users\Miguel\Documents\Plantillas personalizadas de Office"
20130829 123458 <DIR> "C:\Users\Miguel\Documents\viejasPeladoras"
....
20131016 175322 116 "C:\Users\Miguel\Documents\qc.btm"
20131016 183259 2045358 "C:\Users\Miguel\Documents\tcc.txt"
What do you think?