Search found 1925 matches

by Aacini
15 Aug 2025 20:48
Forum: DOS Batch Forum
Topic: Ghost-typer effect in batch: Flickering random letters before each character
Replies: 2
Views: 47

Re: Ghost-typer effect in batch: Flickering random letters before each character

This code does exactly what you requested... @echo off rem Ghost typer setlocal EnableDelayedExpansion set "chars=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" set /A len=62, centiSecs=40, lines=0 for %%a in ("Twinkle twinkle little star" "How I wonder what you are" "Up above the w...
by Aacini
15 Aug 2025 18:28
Forum: DOS Batch Forum
Topic: Any DOS Batch game recommendations?
Replies: 5
Views: 63

Re: Any DOS Batch game recommendations?

Mmm... I just could talk about the games I wrote by myself: 2012/06/20: SNAKE.BAT: Example of basic animated game (at end of this post ) 2014/06/24: 2048.bat game in color (using auxiliary .exe files). 2015/11/27: Tetris game in a pure Batch file 2016/04/12: Tetris in color (using Read arrow keys an...
by Aacini
24 Jul 2025 21:55
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 6958

Re: PAUSE localized... not really

That's a case where I already appreciate Copilot and AI friends :lol: English Press any key to continue . . . German Drücken Sie eine beliebige Taste . . . French Appuyez sur une touche pour continuer . . . Spanish Presione una tecla para continuar . . . Italian Premere un tasto per continuare . . ...
by Aacini
23 Jul 2025 00:26
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 6958

Re: PAUSE localized... not really

In Spanish (Windows 10):

Code: Select all

Presione una tecla para continuar . . .
Antonio
by Aacini
21 Jul 2025 09:16
Forum: DOS Batch Forum
Topic: strLen boosted
Replies: 79
Views: 159880

Re: strLen boosted

May I suggest a simple modification that may speed up the process when there are setlocal/endlocal and frequent environment updates? Just define a "filler" variable at end of the environment before the setlocal and then, inside the routine that update the environment, release such a variable: rem De...
by Aacini
30 Jun 2025 23:06
Forum: DOS Batch Forum
Topic: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly? [SOLVED]
Replies: 5
Views: 5789

Re: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?

I reviewed these old posts: - Convert an unlimited size decimal number to binary - Convert an unlimited size decimal number to base 1024 (Bytes + KB + MB + ...) - Operations on big numbers - More on operations on big numbers - Fast Arithmetic Operations on Big Numbers - Efficient Array Management Op...
by Aacini
20 May 2025 21:50
Forum: DOS Batch Forum
Topic: edit command (CLI text editor) returns to Windows
Replies: 4
Views: 16265

Re: edit command (CLI text editor) returns to Windows

Mmm... More than 10 years ago I started to write a Batch file version of Edlin.com MS-DOS line editor. This was an interesting ancient editor that does not used the screen to browse along the file contents; it show file lines via user requests and also edits the lines in individual line-by-line basi...
by Aacini
16 May 2025 10:57
Forum: DOS Batch Forum
Topic: Simple script to reboot and automatically enter BIOS/UEFI
Replies: 5
Views: 6985

Re: Simple script to reboot and automatically enter BIOS/UEFI

Oye, por respeto a los demás miembros de este foro, debes publicar en inglés. Este es un foro en inglés...

Hey, with respect to the rest of members of this forum, you must write in English. This is an English forum...

Antonio
by Aacini
14 May 2025 11:11
Forum: DOS Batch Forum
Topic: Simple script to reboot and automatically enter BIOS/UEFI
Replies: 5
Views: 6985

Re: Simple script to reboot and automatically enter BIOS/UEFI

Hi. I have not tested your code. I just want to note that you can get the same result in a simpler way. Instead of this code: CHOICE /c 1234567890 /n IF ERRORLEVEL 10 SET SEGS=600 & SET MINS=10 & (GOTO INICIO) IF ERRORLEVEL 9 SET SEGS=540 & SET MINS=09 & (GOTO INICIO) IF ERRORLEVEL 8 SET SEGS=480 & ...
by Aacini
03 May 2025 10:42
Forum: DOS Batch Forum
Topic: …and we’re back!
Replies: 3
Views: 6298

Re: …and we’re back!

Knows anyone what the problem was? And how it was solved?

Antonio
by Aacini
19 Mar 2025 17:31
Forum: DOS Batch Forum
Topic: string replacer for 1 file but it needs looping to replace many OldStrings with NewStrings
Replies: 2
Views: 7012

Re: string replacer for 1 file but it needs looping to replace many OldStrings with NewStrings

Ok. There are a couple important details in this problem. The code below is designed to run fast with large input files. The input file is processed each time with one find string and just in the lines that contains the find string . The rest of the input lines are just copied as fast as possible. T...
by Aacini
11 Jan 2025 22:08
Forum: DOS Batch Forum
Topic: Use Netsh to save ip gw dns to variables for project
Replies: 6
Views: 10432

Re: Use Netsh to save ip gw dns to variables for project

Try this: @echo off setlocal FOR /F "tokens=3,*" %%A IN ('netsh interface show interface^|find "Connected"') DO set "conn=%%B" set "IP=" for /F "tokens=2 delims=:" %%a in ('netsh interface ip show address "%conn%" ^| findstr "Address Default"') do ( for %%b in (%%a) do if not defined IP (set "IP=%%b...
by Aacini
17 Dec 2024 20:58
Forum: DOS Batch Forum
Topic: is this possible?
Replies: 1
Views: 9084

Re: is this possible?

Mmm... Your question title is very undescriptive... "is this possible?" (What is possible? In the description you talk about a syntax error)... The problem is that all your variable names, like starter-str includes a dash that is also used for subtract operation in set /A command. You can not do tha...
by Aacini
16 Dec 2024 09:55
Forum: DOS Batch Forum
Topic: Tokens do not pass after 31, is there some way that i can pass this limit?
Replies: 6
Views: 13961

Re: Tokens do not pass after 31, is there some way that i can pass this limit?

I am afraid I don't understand why you use precisely a FOR /F command that requires a tokens=40 switch. There are a lot of different ways to separate the elements of a list. For example, you can separate the elements in an array first, and then easily show the individual array elements. I am aware t...
by Aacini
15 Dec 2024 09:22
Forum: DOS Batch Forum
Topic: Tokens do not pass after 31, is there some way that i can pass this limit?
Replies: 6
Views: 13961

Re: Tokens do not pass after 31, is there some way that i can pass this limit?

You can use the method implemented at this reply.

For a description of the limitations of the FOR /F tokens command, see the reply before that. For a fully description of this matter, review the whole Using many "tokens=..." in FOR /F command in a simple way thread...

Antonio