Search found 41 matches

by MicrosoftIsKillingMe
24 Mar 2019 18:53
Forum: DOS Batch Forum
Topic: Directory "file dates" keep changing (for DIR) - Win 10
Replies: 9
Views: 1593

Re: Directory "file dates" keep changing (for DIR) - Win 10

Think of the basic FAT and file system architecture. If I add a file A.TXT to c:\foo, nothing in the file system need change for FOO entries (at least, never needed to until "last accessed" came into being). A file entry for A.TXT with that creation date is created; but that alone would be no reason...
by MicrosoftIsKillingMe
24 Mar 2019 17:12
Forum: DOS Batch Forum
Topic: Directory "file dates" keep changing (for DIR) - Win 10
Replies: 9
Views: 1593

Re: Directory "file dates" keep changing (for DIR) - Win 10

Son of a BITCH! MD and RD within a dir DOES change the dir's date. That is so ridiculous. c:\foo has existed for a month; DIR C:\FOO*.* 01/23/2019 10:17 AM <DIR> FOO cd \foo md scratch rd scratch and now, dammit, DIR C:\FOO*.* 03/24/2019 6:08 PM <DIR> FOO You're dead right. But creating and deleting...
by MicrosoftIsKillingMe
24 Mar 2019 15:22
Forum: DOS Batch Forum
Topic: Directory "file dates" keep changing (for DIR) - Win 10
Replies: 9
Views: 1593

Re: Directory "file dates" keep changing (for DIR) - Win 10

Re wild goose - thanks for the frank assessment. It's possible that a specific software is touching the dates but in terms of my overt operations I'm not doing anything that I haven't been doing forever; and this is just appearing in Windows 10. Well, 98% the same; I am running one new piece of fina...
by MicrosoftIsKillingMe
24 Mar 2019 12:23
Forum: DOS Batch Forum
Topic: Directory "file dates" keep changing (for DIR) - Win 10
Replies: 9
Views: 1593

Re: Directory "file dates" keep changing (for DIR) - Win 10

Excellent idea ... /TW ... but it seems that the OS is actually modifying the modified dates themselves, as /TW doesn't help. I really appreciate the suggestion though.
by MicrosoftIsKillingMe
24 Mar 2019 11:19
Forum: DOS Batch Forum
Topic: Directory "file dates" keep changing (for DIR) - Win 10
Replies: 9
Views: 1593

Directory "file dates" keep changing (for DIR) - Win 10

Win 10 keeps touching the date of folders which miserably causes directory c:\foo to appear out of order at the end of dir /OD even though I created it long ago, earlier than other files that display above it for that command. Maybe this has to do with accessed date vs. modified date. (Note that in ...
by MicrosoftIsKillingMe
24 Mar 2019 11:06
Forum: DOS Batch Forum
Topic: Attempt to catch arrow keystrokes
Replies: 21
Views: 8423

Re: Attempt to catch arrow keystrokes

The thread may be ancient but the malady persists. Note, Control-Break (maybe Control C) is also victimized (at least observed in Windows 10 DOS). If you can compile C, try this. Even tiny model :) #include <conio.h> int main(void) { while (kbhit()) getch(); return 0; } and run eat-keys.com or eat-k...
by MicrosoftIsKillingMe
18 Jun 2018 23:13
Forum: DOS Batch Forum
Topic: Prevent unwanted redirection in compound piped command
Replies: 6
Views: 1724

Re: Prevent unwanted redirection in compound piped command

>nul 2>&1 is still confusing. Rob's fine page covers 2>&1 redirecting to stdout and stderr but I don't know why that's done following >nul. It would seem you'd do either one or the other - either send to nul, or to the 2 standard devices.
by MicrosoftIsKillingMe
18 Jun 2018 22:59
Forum: DOS Batch Forum
Topic: Prevent unwanted redirection in compound piped command
Replies: 6
Views: 1724

Re: Prevent unwanted redirection in compound piped command

Just as an aside, I had tried to do something like your compact second form (which works), but I had tripped on the single quotes when I built it. I went for /F %%a in ('fsutil 8dot3name query' ^| 'findstr /v /i "Enable "') do (echo DANGER FIX REGISTRY & pause) which is faulty. (Removing the 2nd and...
by MicrosoftIsKillingMe
18 Jun 2018 22:48
Forum: DOS Batch Forum
Topic: Prevent unwanted redirection in compound piped command
Replies: 6
Views: 1724

Re: Prevent unwanted redirection in compound piped command

Awesome. For understanding purposes, was I actually redirecting? One day I might pipe to FOR, and don't understand why this failed to pause but your solution didn't.

And BTW I understand going

Code: Select all

>nul
but not

Code: Select all

>nul 2>&1



For me, code tags for single lines just interrupt the flow
by MicrosoftIsKillingMe
18 Jun 2018 21:31
Forum: DOS Batch Forum
Topic: Prevent unwanted redirection in compound piped command
Replies: 6
Views: 1724

Prevent unwanted redirection in compound piped command

Rookie question. I have this line in my bootup batch fsutil 8dot3name query | for /F %%a in ('findstr /v /i "Enable "') do (echo DANGER FIX REGISTRY & pause) The issue is that the pause does not pause. I suspect (but don't know) that the "pipe feeder" fsutil is piping to the pause. Here's a simpler ...
by MicrosoftIsKillingMe
02 Mar 2018 05:27
Forum: DOS Batch Forum
Topic: Completely confused by PING 192.168.0.2
Replies: 2
Views: 1083

Re: Completely confused by PING 192.168.0.2

Thanks for that report. My real problem is that I routinely run .BATs on the always-on machine even when the other side is gone, so re-establishing NET USE isn't practical. One other difference for me is that the delay is only forever-ish, maybe a minute or something. GENERALLY I experience that pai...
by MicrosoftIsKillingMe
28 Feb 2018 05:31
Forum: DOS Batch Forum
Topic: Completely confused by PING 192.168.0.2
Replies: 2
Views: 1083

Completely confused by PING 192.168.0.2

Apologies if this doesn't strictly fit this forum. I'll take no offense if you incinerate it, but tell me where to go if you do. It does involve strictly DOS operation and .BAT in particular. Right up front, I am ignorant about IP addressing, and what PING and NET USE truly do. I have a basic functi...
by MicrosoftIsKillingMe
04 Feb 2018 05:09
Forum: DOS Batch Forum
Topic: DIR output including path on the same line as file name?
Replies: 9
Views: 2225

Re: DIR output including path on the same line as file name?

This (namely the NOTES at the bottom of the .BAT below) shows the kind of information I was looking for, which I'll share in case it is helpful and useful to those less than superguru, some of whom don't have those details all committed to memory. There may be inaccuracies but it's what I deduced. T...
by MicrosoftIsKillingMe
04 Feb 2018 01:49
Forum: DOS Batch Forum
Topic: DIR output including path on the same line as file name?
Replies: 9
Views: 2225

Re: DIR output including path on the same line as file name?

ss64 clarified the asterisk when using /R "Unlike some other variants of the FOR command you must include a wildcard (either * or ?) in the 'set' to get consistent results returned. In many cases you can work around this by adding a single character wildcard e.g. if you are looping through multiple...
by MicrosoftIsKillingMe
04 Feb 2018 01:20
Forum: DOS Batch Forum
Topic: DIR output including path on the same line as file name?
Replies: 9
Views: 2225

Re: DIR output including path on the same line as file name?

In response to the last post, --------------------------------------------------------------------------------------------------------------------------------------------- The basis of my question about command extensions, which I thought was based on enableextensions: {FOR /?} ... If Command Extens...