Search found 4578 matches
- 30 Jul 2025 09:09
- Forum: DOS Batch Forum
- Topic: PAUSE localized... not really
- Replies: 11
- Views: 645
Re: PAUSE localized... not really
As en-US is probably the fallback, you could run a quick loop to get what system apps and libraries are not localized. @echo off >"missing_mui.txt" ( for %%i in ("%systemroot%\system32\en-us\*.mui") do ( if not exist "%systemroot%\system32\sl-si\%%~nxi" echo %%~ni ) ) I assume the MUI files directly...
- 28 Jul 2025 09:31
- Forum: DOS Batch Forum
- Topic: PAUSE localized... not really
- Replies: 11
- Views: 645
Re: PAUSE localized... not really
If I check the language folders in C:\Windows\System32\ then I have 1781 files in the en-US folder and 1715 files in the de-DE (German) folder. They both contain the cmd.exe.mui file for the localized messages of the cmd.exe. Along with a lot more language folders, I also have a sl-SI folder with on...
- 25 Jul 2025 09:57
- Forum: DOS Batch Forum
- Topic: PAUSE localized... not really
- Replies: 11
- Views: 645
Re: PAUSE localized... not really
- What exactly you did to get this listing? I really used Copilot. Recent versions of Edge should have a button in the top right corner to open it. I didn't explicitly ask for the Slovenian translation. Instead I entered something like "What are localized messages of the PAUSE command in cmd.exe?" ...
- 23 Jul 2025 14:07
- Forum: DOS Batch Forum
- Topic: PAUSE localized... not really
- Replies: 11
- Views: 645
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 . . ....
- 23 Jul 2025 12:55
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Definitely the fastest version we have so far. Well done :!: May I suggest to consistently use spaces rather than tabs? The displayed tab width depends on editor settings and mixing them makes a mess with indentations. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ...
- 21 Jul 2025 17:00
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Nice idea, Antonio. So, what you suggest could look like so for testing purposes? :: make sure we are in the spotlight: @if "%~1"=="" start /realtime conhost "%~f0" 1&exit /b @echo off &setlocal EnableDelayedExpansion set str=^ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
- 20 Jul 2025 07:34
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Cool :D If I take the latest code I posted, it comes pretty much down to the same results. Your's is still slightly faster but lacks the 8191 upper limit. Not really important though. PS. For the "Realtime" prioticity I used the "run as administrator" otherwise it gives you "high" You're right. "Hig...
- 19 Jul 2025 10:55
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Let's sum up for now. What we are having is a combination of different methods. 1) The 4096-character slicing remains from the powers-of-two slicing method. 2) The scaling in multiples of 256 that Antonio suggested is beneficial to avoid too many updates of the environment. However, extending this t...
- 18 Jul 2025 13:38
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
What do you think of that one? :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :initStrLen :: Computes the number of bytes in a string. :: %strLen% str len :: str - [ByRef In] Name of the variable containing the string to be measured. :: len - [ByRef Out] Name of the...
- 17 Jul 2025 11:02
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Your latest wrapped into a macro: :initStrLen :: Computes the number of bytes in a string. :: %strLen% str len :: str - [ByRef In] Name of the variable containing the string to be measured. :: len - [ByRef Out] Name of the variable that receives the measured length. :: Strings of up to 8190 characte...
- 17 Jul 2025 09:48
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Re: "Why does SET performance degrade as environment size grows?" Nothing changed in the way environment variables are handled in the process. So I guess the impact of the size/amount of variables decreased only because we have faster processors, multi-core processors, better branch prediction, more...
- 16 Jul 2025 16:15
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Looks really promising. I'll try to wrap it into a macro tomorrow. Just attempting to answer your question but they told me the set problem related to the env size is no longer there It depends. The limit in the CMD is still 8191. I just tried to add another x to the str1 variable as in my test code...
- 15 Jul 2025 13:15
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
The $strlen macro that you have in your test code now is pretty much the same as the latest strLen macro I posted :lol: It's just that yours always expects that delayed expansion is enabled and that $len is the predefined name for the output. Besides of that, yours also handles the 255 characters fo...
- 12 Jul 2025 05:57
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
Addendum: Of course we could call setlocal/endlocal conditionally, depending on whether delayed expansion is already enabled. I changed variable names slightly to mitigate the risk of name clashes. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :initStrLen :: Comput...
- 09 Jul 2025 13:40
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 52
- Views: 141003
Re: strLen boosted
I don't feel like continuing to try to squeeze out every last hundredth of a second 🤯 That's it for now: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :initStrLen :: Computes the number of bytes in a string. :: %strLen% str len :: str - [ByRef In] Name of the varia...