Responding to a problem for me that I totally do not understand

May 20, 2008
3,515
4
Elkridge, MD, USA
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...
 
May 24, 2010
855
0
Northlake, Il
E. S. Fabian wrote:
| I tried to post by email the response below, but was rejected with a
| "thread not available" response.
Steve, I'm sorry that happened but it's just that you were too quick for me. I deleted the thread because I figured out that that was the problem myself very shortly after I submitted it. (This was a simply matter of "misplaced expectations"; in the C++ programs that I write I am a stickler about the order and placement of keyword (i.e., non-positional) parameters being completely and totally irrelevant. (And the only "positional" parameters that I use are the completely "obvious" and/or "traditional" ones, such as the source and destination in a "copy" command. I will all also add that all non-trivial programs that I write have a built-in, comprehensive, "help" system to completely explain all aspects of the program as best I can.) In fact, since I generally use one common parameter-driven subroutine for all command-line parsing, at this point in time that fact is set in stone, so to speak. But this should not be taken as a criticism of whatever other people do/don't do in their command-line programs...)
 
May 20, 2008
3,515
4
Elkridge, MD, USA
From: mathewsdw
|
| Steve, I'm sorry that happened but it's just that you were too quick
| for me. I deleted the thread because I figured out that that was the
| problem myself very shortly after I submitted it.

Many of us do not browse the forum. Instead we have each post delivered as email. The posts made prior to thread deletion are delivered anyway. There is no way for us to know that the issue was already solved without a short new post, something like "Never mind, syntax error already fixed". Deleting the thread is just confusing. Please note that it is possible to read and write email in environments that do not support browsing, or where browsing is much more expensive than email handling, in time (due to bandwidth limitations) or in money (being billed for internet access by the kilobyte on some mobile phone plans).
--
Steve
 
May 24, 2010
855
0
Northlake, Il
From: mathewsdw
Many of us do not browse the forum. Instead we have each post delivered as email. The posts made prior to thread deletion are delivered anyway. There is no way for us to know that the issue was already solved without a short new post, something like "Never mind, syntax error already fixed". Deleting the thread is just confusing. Please note that it is possible to read and write email in environments that do not support browsing, or where browsing is much more expensive than email handling, in time (due to bandwidth limitations) or in money (being billed for internet access by the kilobyte on some mobile phone plans).
===
Steve
Steve, I'm sorry, but I literally had no idea whatsoever that that was the case. (And that relates to the fact that, for a whole host of reasons, many related to my disabilities, I could not possibly function in such a manner!) But now that I do know, I'll at least try to keep that in mind. (Although maybe it would be better if the bulletin-board software did not make that such a prominent, at least, option. As I've noted before, my bad memory is not a joke and is not funny....)
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Responding to WM_SETTINGSCHANGE? Support 5
rconn Not responding Support 0
Dick Johnson Weird Color Problem Support 8
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4
rps V20 In-process pipes problem Support 8

Similar threads