- May
- 3,515
- 5
E. S. Fabian wrote:
| I tried to post by email the response below, but was rejected with a
| "thread not available" response.
|
| mathewsdw wrote:
|| I have a fairly simple .btm file:
||
||
|| Code:
|| @Echo Off
|| PDir /A-D /S ^
|| "%@UnQuote[%1]" "%@UnQuote[%2]" "%@UnQuote[%3]" ^
|| /(dy/m/d th:m:s -64.64fn fp) | ^
|| Sort /+1
|| Whose intent, as you can probably easily see, is to produce a
|| listing of various files whose names match any one of up to 3
|| patterns sorted by date (year first, of course), time, and name.
||
|| Here is a sample invocation of said batch file:
||
||
|| Code:
|| [Z:\]xdir *.txt *.7z >Z:\XDirFileList.txtHere is the beginning part
|| of the output of the above command:
| ...
|| As you can easily see,
|| the files are displayed and sorted by month first (not year!) and the
|| files' paths are not listed at all (and that is not an artifact of
|| this web sotware)!!! What could I possibly be doing wrong???
|
| I suspect that the issue is the placement of the "field list" in the
| command, it is supposed to be BEFORE the list of filenames. I would
| try this:
|
| @Echo Off
| PDir /A-D /S ^
| /(dy/m/d th:m:s -64.64fn fp) ^
| "%@UnQuote[%1]" "%@UnQuote[%2]" "%@UnQuote[%3]" ^
|| Sort /+1
|
| BTW, on my system I set Windows to use ISO date and time format...
| I tried to post by email the response below, but was rejected with a
| "thread not available" response.
|
| mathewsdw wrote:
|| I have a fairly simple .btm file:
||
||
|| Code:
|| @Echo Off
|| PDir /A-D /S ^
|| "%@UnQuote[%1]" "%@UnQuote[%2]" "%@UnQuote[%3]" ^
|| /(dy/m/d th:m:s -64.64fn fp) | ^
|| Sort /+1
|| Whose intent, as you can probably easily see, is to produce a
|| listing of various files whose names match any one of up to 3
|| patterns sorted by date (year first, of course), time, and name.
||
|| Here is a sample invocation of said batch file:
||
||
|| Code:
|| [Z:\]xdir *.txt *.7z >Z:\XDirFileList.txtHere is the beginning part
|| of the output of the above command:
| ...
|| As you can easily see,
|| the files are displayed and sorted by month first (not year!) and the
|| files' paths are not listed at all (and that is not an artifact of
|| this web sotware)!!! What could I possibly be doing wrong???
|
| I suspect that the issue is the placement of the "field list" in the
| command, it is supposed to be BEFORE the list of filenames. I would
| try this:
|
| @Echo Off
| PDir /A-D /S ^
| /(dy/m/d th:m:s -64.64fn fp) ^
| "%@UnQuote[%1]" "%@UnQuote[%2]" "%@UnQuote[%3]" ^
|| Sort /+1
|
| BTW, on my system I set Windows to use ISO date and time format...