Search found 670 matches

by miskox
02 Sep 2025 10:53
Forum: DOS Batch Forum
Topic: Format totals with thousands separator and convert bytes to megabytes
Replies: 4
Views: 510

Re: Format totals with thousands separator and convert bytes to megabytes

For thousands separators I use this (replace . with , if required): @echo off set "line=1234567" echo Original line:%line% set num=0 :LOOP call set tmpa=%%line:~%num%,1%%% set /a num+=1 if not "%tmpa%" equ "" ( set rline=%tmpa%%rline% goto LOOP ) echo Reversed line:%rline% set /a num=0 set line=%rli...
by miskox
24 Aug 2025 11:18
Forum: DOS Batch Forum
Topic: strLen boosted
Replies: 91
Views: 223699

Re: strLen boosted

Bonus chatter: It's absurd what we need to do just to perform such a simple operation. What happens in the implementation if something like !var:~N,1! is evaluated? We can rely on getting an empty result if N exceeds the string length. It does never read behind the string end into foreign memory. T...
by miskox
18 Aug 2025 08:18
Forum: DOS Batch Forum
Topic: Ghost-typer effect in batch: Flickering random letters before each character
Replies: 4
Views: 2526

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

@icarus: can't get it to work. Looks like your ESC is encoded in the file which I can't copy/paste. Please use variable ESC:

Aacini's:

Code: Select all

for /f %%a in ('echo prompt $E^| cmd') do set "ESC=%%a"

Code: Select all

echo [2J
should probably be

Code: Select all

echo %esc%[2J
etc.

Saso
by miskox
18 Aug 2025 08:06
Forum: DOS Batch Forum
Topic: Any DOS Batch game recommendations?
Replies: 10
Views: 1878

Re: Any DOS Batch game recommendations?

Dave's:

- Colossal Cave Adventure: viewtopic.php?t=4876
- snake: viewtopic.php?f=3&t=4741

Saso
by miskox
14 Aug 2025 02:52
Forum: DOS Batch Forum
Topic: Echo ( and ) within a block
Replies: 2
Views: 3419

Re: Echo ( and ) within a block

Thanks Jeb!

Saso
by miskox
12 Aug 2025 02:46
Forum: DOS Batch Forum
Topic: Echo ( and ) within a block
Replies: 2
Views: 3419

Echo ( and ) within a block

I have this: @echo off set str=somestringABCDEF (echo/)&&(echo %str%) set str=somestring(ABCDEF) (echo/)&&(echo %str%) Output: c:\>a somestringABCDEF ) was unexpected at this time. c:\> Ideas how to display ( and )? ECHO/ is there just to show the problem. In reality I have a FINDSTR command and I c...
by miskox
04 Aug 2025 22:22
Forum: DOS Batch Forum
Topic: strLen boosted
Replies: 91
Views: 223699

Re: strLen boosted

This Compo's solution might help determing if DELAYEDEXPANSION is ON or OFF:

https://stackoverflow.com/questions/761 ... -is-active

Code: Select all

IF "!!" == "" (
  ECHO Delayed expansion is ON
)  ELSE (
  ECHO Delayed expansion is OFF
)
Saso
by miskox
31 Jul 2025 00:11
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 27231

Re: PAUSE localized... not really

Yes, there are lots of files missing. Never noticed that they were not in Slovene (or Slovenian - both versions are correct). I noticed the PAUSE not being translated while using Aacini's AutoMenu.bat. I added the first line below and after that there is a PAUSE command... Pritisnite tipko za vrnite...
by miskox
30 Jul 2025 02:10
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 27231

Re: PAUSE localized... not really

My sl-SI folder contains 843 .mui files. De-DE 14 files. Other xx-xx folders I have contain 13 or 14 .mui files.

As you mentioned: cmd.exe.mui file is not present.

Thanks. I learned something new today.

Saso
by miskox
28 Jul 2025 05:26
Forum: DOS Batch Forum
Topic: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)
Replies: 22
Views: 96679

Re: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)

Announcment: new version 2.0 is here. What's new that justifies major version number change? AutoMenu.bat now supports display of menu options based on user groups! Antonio designed AutoMenu.bat to have these information in the filename/directory name (delimited by a minus sign '-'): key to press-sh...
by miskox
28 Jul 2025 00:03
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 27231

Re: PAUSE localized... not really

Interesting. Looks like cmd.exe has not been translated. I also checked this on Windows 11 (24H2 26100.4652). For example COLOR /? shows help in English. GETMESSAGETABLE gives this: #M 0x0000232B #L 0x0409 : Press any key to continue . . . %0 There is no other match for 232B. Thank you Steffen - Som...
by miskox
24 Jul 2025 00:22
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 27231

Re: PAUSE localized... not really

Very good Steffen!

Thanks.

Translators forgot to translate this in Slovenian version of Windows or... . Who knows.

Saso
by miskox
23 Jul 2025 03:09
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 27231

Re: PAUSE localized... not really

Thank you Antonio!

Looks like Microsoft should translate this in Slovenian version of Windows... but support will end soon.

Maybe other localizations?

Thanks again.
Saso
by miskox
22 Jul 2025 22:12
Forum: DOS Batch Forum
Topic: PAUSE localized... not really
Replies: 11
Views: 27231

PAUSE localized... not really

PAUSE command is sometimes localized and sometimes it is not: Einstein's post (https://www.dostips.com/forum/viewtopic.php?p=71407#p71407): Premere un tasto per continuare . . . aGerman's post (https://www.dostips.com/forum/viewtopic.php?p=71388#p71388): Drücken Sie eine beliebige Taste . . . I trie...
by miskox
03 Jul 2025 22:31
Forum: DOS Batch Forum
Topic: VBS returns localized TRUE/FALSE
Replies: 3
Views: 8477

Re: VBS returns localized TRUE/FALSE

Thank you Steffen.

Saso