Search found 150 matches

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: 160

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: 160

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: 321

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: 321

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: 37
Views: 5168

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: 37
Views: 5168

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: 37
Views: 5168

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: 37
Views: 5168

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: 37
Views: 5168

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: 37
Views: 5168

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...
by Jer
10 Nov 2018 00:16
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 5168

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

The scope of my project is within the PC environments I have, Windows 7, or Windows 10 where ansi sequence codes are inserted in text files for color. The font should be raster and code page is 437. The project is an experiment that some may find interesting to try out after browsing the samples. Th...
by Jer
08 Nov 2018 23:36
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 5168

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

A 169kb zipped file brings up the "file too large" box. Same with 112kb zipped file. 99kb attached okay. The attached image file does not show well because it had to be reduced in size to pass what seems to be a 100kb limit. And here's a linked larger image file at tinypic dot com: update: The attac...
by Jer
04 Nov 2018 16:00
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 5168

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

Copy the lines below to a text file, make a large cmd window and type out the file with the TYPE command. It is a sample page of the color viewing batch file from my previous post. I was not able to make the image insert happen; lack of forum skills, or too cheap to pay for a file storing service. F...
by Jer
03 Nov 2018 10:29
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 5168

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

Below is an image from one tool in a set of tools in development. It is from a colors viewer with options to expand to larger samples, 2-color contrast samples, screen-size sample, and other options. You make note of the colors you want to use, and with another tool I'll call ansitool.bat, assign co...
by Jer
02 Nov 2018 14:15
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 5168

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

Thanks for the CHCP info. It's good to know the CHCP command changing a raster font to non-raster is not unique to my PC configuration. I wanted to borrow a character from code page 65001 as a temporary replacement character for the double quote, but will not be doing that from what I've learned her...