Search found 6 matches

by RaceQuest
12 Nov 2018 12:28
Forum: DOS Batch Forum
Topic: Destructive env var substring
Replies: 18
Views: 18889

Re: Destructive env var substring

I found cmdcmdline substitution side effect writing code to Today then found this thread. You rigorously dissected this quirk well done Dave, Jeb and Queue still an interesting first time read in 2018. :D
by RaceQuest
29 Jan 2018 14:43
Forum: DOS Batch Forum
Topic: Box-drawing characters in batch files...?
Replies: 25
Views: 48429

Re: Box-drawing characters in batch files...?

I had two very similar machines but one started cmd.exe using codepage 850 while the other one defaulted to cmd.exe using codepage 437. After reading the thread,some experimenting and several reboots I found "Language for non-Unicode programs" setting caused the difference: "English (US)" gave cmd.e...
by RaceQuest
29 Jan 2018 14:29
Forum: DOS Batch Forum
Topic: Box-drawing characters in batch files...?
Replies: 25
Views: 48429

Re: Box-drawing characters in batch files...?

But... I tried using Notepad++ and can paste and save a file with a box-character in it. The status bar shows that the file is encoded in UTF-8, but (unlike in Windows Notepad) the batch file saves and runs fine... except the box-characters echoed to the screen appear as capital accented characters...
by RaceQuest
25 Mar 2017 03:14
Forum: DOS Batch Forum
Topic: Functional carriage return literal within a batch script!
Replies: 5
Views: 24854

carriage return as a single key response

Is is possible to use pass a <CR> as data to a program used in a batch script. Example: choice.com /n "CR test: " /c:!CR!yn where CR contains a carriage return character? I have a replacement utility to choice.com that is functionally equivalent so I would like pressing enter key (carriage...
by RaceQuest
04 Feb 2016 07:31
Forum: DOS Batch Forum
Topic: ReadFormattedLine.bat: Read a line with specific format
Replies: 11
Views: 30258

Re: ReadFormattedLine.bat: Read a line with specific format

It doesn't appear like that here... If you use a special text editor then try pasting the code into notepad and saving it. Or do you use a non-latin language? The console font you using in CMD.EXE may also be a factor. Thanks for the tip I was copy and pasting using notepad+ which saved it as "...
by RaceQuest
02 Feb 2016 23:11
Forum: DOS Batch Forum
Topic: ReadFormattedLine.bat: Read a line with specific format
Replies: 11
Views: 30258

Re: ReadFormattedLine.bat: Read a line with specific format

I am running this under WIN XP SP3 is this what is should look like?

Image