Search found 2302 matches

by dbenham
17 Sep 2019 16:50
Forum: DOS Batch Forum
Topic: Looking for a specific book
Replies: 16
Views: 6824

Re: Looking for a specific book

Amen to both misol101 and ShadowThief.

Especially misol101 - I needed a good laugh.
by dbenham
13 Sep 2019 11:20
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.4 - regex text processor with support for text highlighting and alternate character sets
Replies: 445
Views: 270918

Re: JREPL.BAT v8.4 - regex text processor with support for text highlighting and alternate character sets

Well that was an easy fix. I replaced version 8.3 with version 8.4

I also updated the main release to version 8.4 at the original post in this thread.

Thanks again MarzSyndrome - you were a big help.


Dave Benham
by dbenham
13 Sep 2019 05:42
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.4 - regex text processor with support for text highlighting and alternate character sets
Replies: 445
Views: 270918

Re: JREPL.BAT v8.3 - regex text processor with support for text highlighting and alternate character sets

That is most definitely a serious bug :!: :cry:

Not sure how long it will take, but I will definitely fix that.

Thanks for reporting - please don't hesitate to report any suspect behavior in the future.


Dave Benham
by dbenham
08 Sep 2019 05:51
Forum: DOS Batch Forum
Topic: CALL myBatch.bat can return to the wrong place
Replies: 4
Views: 2535

Re: CALL myBatch.bat can return to the wrong place

Very interesting discovery and technique. :shock: 8) I was worried about SETLOCAL not ending properly, but all seems to be good - all SETLOCAL within both the CALLer and the CALLed are properly ended. I recommend quoting your CALLed path just in case there are spaces or other problematic characters ...
by dbenham
07 Sep 2019 05:41
Forum: DOS Batch Forum
Topic: Closing parenthesis prevents escape of subsequent special character operator
Replies: 33
Views: 12118

Re: Closing parenthesis prevents escape of subsequent special character operator

Hi sst, I'm impressed by your analysis/debugging. :o :!: It explains so much. Ditto that But why it only drops the token, when a redirection is present :?: I'll take a stab at that. The redirection parser requires the file path, which may be in the next token. echo hello 2> one^ two^ three.txt worl...
by dbenham
06 Sep 2019 03:58
Forum: DOS Batch Forum
Topic: Closing parenthesis prevents escape of subsequent special character operator
Replies: 33
Views: 12118

Re: Closing parenthesis prevents escape of subsequent special character operator

sst wrote:
06 Sep 2019 00:02
I don't follow. Would you give an example?
From a few posts ago - viewtopic.php?f=3&t=8198&start=15#p60206

Dave Benham
by dbenham
03 Sep 2019 05:30
Forum: DOS Batch Forum
Topic: Closing parenthesis prevents escape of subsequent special character operator
Replies: 33
Views: 12118

Re: Closing parenthesis prevents escape of subsequent special character operator

6. The parser is at level 1 . It reads the next token( GeToken ) and compares it against the string "&" . The escaping will be done in the GeToken function so it will return "&" instead of "^&" and sets the token type to Literal Text (0x4000) but the operator parsing function (which is named Binary...
by dbenham
30 Aug 2019 21:29
Forum: DOS Batch Forum
Topic: Closing parenthesis prevents escape of subsequent special character operator
Replies: 33
Views: 12118

Re: Closing parenthesis prevents escape of subsequent special character operator

I stumbled upon this old post of mine, and I just realized the last behavior is identical to REM :shock: :!: If there is only one following token ending with escape and end of line, then the token is thrown away. This repeats until there is more than one token on the line, or the line doesn't end wi...
by dbenham
29 Aug 2019 11:24
Forum: DOS Batch Forum
Topic: Replace "!" in a variable value when delayed expansion is on
Replies: 7
Views: 3186

Re: Replace "!" in a variable value when delayed expansion is on

Bang is a term used in the computer industry to mean exclamation point. I believe it originated in the Unix world. The statement about characters before hand has to do with the mechanism (rules) used to parse/expand variables . Here is a demonstration: @echo off setlocal disableDelayedExpansion set ...
by dbenham
25 Aug 2019 11:30
Forum: DOS Batch Forum
Topic: VT100 escape sequences not working in Windows 10?
Replies: 7
Views: 2484

Re: VT100 escape sequences not working in Windows 10?

If you are OK with displaying the file names on the top line, then there is no need for VT100 sequences. Simply do CLS & ECHO file. You can easily make your original code work on any line with a small change: set /p "=!CR! !CR!!filename!" < nul Just make sure the number of spaces between the to carr...
by dbenham
16 Aug 2019 13:54
Forum: DOS Batch Forum
Topic: Call bug using silent operator @
Replies: 2
Views: 2705

Re: Call bug using silent operator @

Developing a project related to batch I found that the CALL internal command has a bug. It not execute the command if you use the silent operator @. Yes - that is known behavior. We documented that in Phase 6 of the batch parsing rules at StackOverflow . There are a number of constructs that functi...
by dbenham
16 Aug 2019 06:46
Forum: DOS Batch Forum
Topic: Newly discovered pipe behavior - and a fun challenge!
Replies: 5
Views: 3462

Re: Newly discovered pipe behavior - and a fun challenge!

And so you did :!: :oops: You introduced a number of new concepts, and my brain was a bit overwhelmed. There are still a number of points I don't fully understand. I hope to revisit your posts and see if I can better absorb the info. For me, this is the key post where you point out the difference. I...
by dbenham
15 Aug 2019 12:38
Forum: DOS Batch Forum
Topic: Newly discovered pipe behavior - and a fun challenge!
Replies: 5
Views: 3462

Re: Newly discovered pipe behavior - and a fun challenge!

OMG! Adding one measly little CALL causes the output to balloon to 4145 bytes! echo(&echo 12) break ^| (cmd /v:on /c call echo %%%%cmdcmdline%%%% %%%%cmdcmdline%%%%) break | (cmd /v:on /c call echo %%cmdcmdline%% %%cmdcmdline%%) --OUTPUT-- 12) break | (cmd /v:on /c call echo %%cmdcmdline%% %%cmdcmdl...
by dbenham
15 Aug 2019 12:20
Forum: DOS Batch Forum
Topic: Newly discovered pipe behavior - and a fun challenge!
Replies: 5
Views: 3462

Newly discovered pipe behavior - and a fun challenge!

Over at https://stackoverflow.com/a/57492041/1012053 jeb deduced a newly discovered behavior of Windows pipes. We had all thought that each side of a pipe is always executed in a new cmd.exe process via CMD /S /D /C. Well it turns out cmd.exe is only used if the command is an internal command, or if...
by dbenham
14 Aug 2019 05:58
Forum: DOS Batch Forum
Topic: Send certutil output directly to a variable instead of file, and then finally copy to clipboard?
Replies: 6
Views: 4575

Re: Send certutil output directly to a variable instead of file, and then finally copy to clipboard?

As aGerman said, you cannot avoid creating a file. But if your goal is to put the result on the clipboard, then there is no need for an environment variable. You can simply TYPE the output file and pipe it into the CLIP utility. Also, the -encodehex verb has options that allow you to create base64 u...