Search found 155 matches

by Jer
25 Nov 2019 16:14
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

As posted in this forum, TinyPic image hosting is no longer available and this caused my images to go away. These links, after right clicking and choosing open in a new tab, pull up my project sample images for me. Clicking on the link just shows a white screen on my Windows 10 PC w/Firefox browser....
by Jer
09 Aug 2019 10:58
Forum: DOS Batch Forum
Topic: SORT Order not working correction
Replies: 8
Views: 4480

Re: SORT Order not working correction

Here's my solution which is to create an artificial sort field. I'm looking forward to reading Antonio's solution. I rearranged lines in the source text to show that it works. @echo off setlocal EnableDelayedExpansion set "srce=source.txt" set "del=|" >_temp.txt ( For /F "tokens=1-6* delims=%del%" %...
by Jer
05 Jun 2019 20:17
Forum: DOS Batch Forum
Topic: For Loop - How do I keep the delimiter?
Replies: 0
Views: 6138

For Loop - How do I keep the delimiter?

Keeping the delimiter when parsing a string with a For loop was covered previously; I can't find it and I forgot how it was done. It was some trick with the asterisk. From a user entry, remove "+10" from string "509 1116+10 88" leaving "509 1116 88" The "+" option is valid when browsing the whole da...
by Jer
08 May 2019 12:19
Forum: DOS Batch Forum
Topic: Fire-Colored particle system
Replies: 6
Views: 1217

Re: Fire-Colored particle system

I have questions about two lines. If someone could explain, that would be great. What does "& echo !esc![?25l" do? In the assignment of screen, how is "H" doing its job? Changing it to some other character gives different spacing and frequency. "G" and "I" produce many more characters than H. Thanks...
by Jer
08 May 2019 09:23
Forum: DOS Batch Forum
Topic: Fire-Colored particle system
Replies: 6
Views: 1217

Re: Fire-Colored particle system

Any idea why the batch code does this? The termination is my doing. This is all displayed in a smaller window, same as your image. My O/S: Microsoft Windows [Version 10.0.17134.706] [38;2;191;71;7m█[0m [38;2;175; 63;7m█[0m;199;7[3[38;2;199;71;[38;2; 175;63;7m█[0m38;2;223;79;7m█[0m38;[3 8;2;191;71;7m...
by Jer
28 Mar 2019 18:46
Forum: DOS Batch Forum
Topic: How can I close batch file from any prompt in code?
Replies: 2
Views: 772

Re: How can I close batch file from any prompt in code?

That works! And very easy to do. My code uses your :choice function, and uppercase X will be the keypress (and also as an entry at the prompt for text input) to exit completely from any screen. spacebar and Enter key are assigned error level 0 in the choice function. I'll use exit /b 50 to communica...
by Jer
28 Mar 2019 13:39
Forum: DOS Batch Forum
Topic: How can I close batch file from any prompt in code?
Replies: 2
Views: 772

How can I close batch file from any prompt in code?

I would like to add <shift+X> as an option to exit from the batch script from any of the prompts for input, and not close the cmd window. Can this be done? I searched a little and found no answer. I tried a goto :exitNow but the code flows from the label that has exit /b, back to where the goto was ...
by Jer
25 Mar 2019 12:05
Forum: DOS Batch Forum
Topic: Title command to unclutter title bar question
Replies: 2
Views: 966

Re: Title command to unclutter title bar question

Yesterday "Title" was not working for me. During code development, "cmd" appeared in the title bar and repeated itself. Today, just "Title" is keeping the bar clear. There is a post on Stack Overflow about how Kedit for Windows, my text editor, saves files. It states that Kedit does not keep the bla...
by Jer
24 Mar 2019 22:36
Forum: DOS Batch Forum
Topic: Title command to unclutter title bar question
Replies: 2
Views: 966

Title command to unclutter title bar question

Title help says
TITLE [string]

string Specifies the title for the command prompt window.
Are there any secrets on how to keep the title bar clean?
Is this the best solution assigning character #255 as the string?

Code: Select all

Title ÿ
Thanks.
Jerry
by Jer
18 Dec 2018 00:07
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

I removed double quote character temporary substitution from my batch code and found that tests and my set of samples ran without error. Also, strings are now being passed to functions by reference. The CHCP font issue is no longer mysterious (i.e., not unique to my PC) as explained by Dave in post ...
by Jer
14 Nov 2018 18:32
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

About passing the variable name to a function and getting its value in the function, there it was in front of me in strLen function. Yes I am passing variable names to functions many times. It did not occur to me to use !%~1! inside a function, as strLen does. I will try it when I return and see if ...
by Jer
14 Nov 2018 10:55
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

I did not know about passing a variable name to a function. Thanks for that revelation. Sorry that I have not explained the final goal with a simple example. The final goal is to display bordered content, like in the images, with any characters and no crashes because of poison characters. The code r...
by Jer
13 Nov 2018 17:51
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

I appreciate your advice and examples of code that has no need of replacing special characters, including " and !. I've tried to revise code and remove replacement, but errors occur and passing strings with special characters to functions does not do what it is supposed to do. In the illustrative co...
by Jer
13 Nov 2018 01:44
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

Thanks Steffen for taking the time to look at this. Antonio asked for a simple example and your solution ran flawlessly for that scenario. In my bdrs (borders & boxes) script, strings of text from the command-line are converted to multi-line fields when delimited by a colon. The command-line entry {...
by Jer
12 Nov 2018 12:57
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 38
Views: 8502

Re: Can I get access to an ascii character not in the standard set?

This batch code can show the double quote causing an error when it is not replaced by another character. @echo off setlocal rem test command-line arguments: x {a quote " and exclamation mark ! set "args=%*" If "%args%" equ "" echo no args entered & exit /b rem comment following line to demo code fai...