- May
- 13,399
- 190
I suppose "::..\..." means (at least) two characters, then a '.' and then (at least) two characters. But that regular expression never works!
The error message above gives a clue; in it, my regular expression was changed!
Oddly, "::.\.." (char, dot, char) and "...\...." (3 chars, dot, 3 chars) work.
Code:
v:\zips> *dir
Volume in drive V is DATA Serial number is c007:d3e4
Directory of V:\zips\*
2012-11-26 23:28 <DIR> .
2012-11-26 23:28 <DIR> ..
2012-11-26 23:28 <DIR> Save
2012-11-26 23:28 <DIR> shralias_ascii_save_files
2012-11-26 23:28 <DIR> X64
2012-11-25 15:40 38,933 4console.zip
2012-11-26 15:43 86,596 4threads.zip
2012-11-26 15:30 61,867 4utils.zip
2012-11-06 05:41 56,097 sysutils.zip
243,493 bytes in 4 files and 5 dirs 253,952 bytes allocated
6,785,912,832 bytes free
v:\zips> *dir "::..\..."
Volume in drive V is DATA Serial number is c007:d3e4
TCC: (Sys) The system cannot find the file specified.
"V:\zips\::..\..\.."
0 bytes in 0 files and 0 dirs
The error message above gives a clue; in it, my regular expression was changed!
Oddly, "::.\.." (char, dot, char) and "...\...." (3 chars, dot, 3 chars) work.
Code:
v:\zips> *dir "::.\.."
Volume in drive V is DATA Serial number is c007:d3e4
Directory of V:\zips\::.\..
2012-11-25 15:40 38,933 4console.zip
2012-11-26 15:43 86,596 4threads.zip
2012-11-26 15:30 61,867 4utils.zip
2012-11-06 05:41 56,097 sysutils.zip
243,493 bytes in 4 files and 0 dirs 253,952 bytes allocated
6,785,912,832 bytes free
v:\zips> *dir "::...\...."
Volume in drive V is DATA Serial number is c007:d3e4
Directory of V:\zips\::...\....
2012-11-25 15:40 38,933 4console.zip
2012-11-26 15:43 86,596 4threads.zip
2012-11-26 15:30 61,867 4utils.zip
2012-11-06 05:41 56,097 sysutils.zip
243,493 bytes in 4 files and 0 dirs 253,952 bytes allocated
6,785,912,832 bytes free