Search found 650 matches

by miskox
24 Jun 2025 04:04
Forum: DOS Batch Forum
Topic: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)
Replies: 21
Views: 79730

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

Did you see this note from Aacini: A small drawback in the scheme used is that the maximum lenght of nested names (260 characters) may be reached if you use very long names with several levels deep. If the "Windows-DOS Commands Help" menu system don't show full names or don't works correctly, try to...
by miskox
21 May 2025 02:37
Forum: DOS Batch Forum
Topic: edit command (CLI text editor) returns to Windows
Replies: 3
Views: 8310

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

EDLIN.COM 2392 bytes.

Those were the days.

Saso
by miskox
25 Mar 2025 00:05
Forum: DOS Batch Forum
Topic: 3D rotating donut
Replies: 5
Views: 9256

Re: 3D rotating donut

Thank you. Very interesting. I also checked other videos he has.

Saso
by miskox
17 Mar 2025 02:38
Forum: DOS Batch Forum
Topic: 3D rotating donut
Replies: 5
Views: 9256

Re: 3D rotating donut

I am very impressed! Though I don't understand the code at all (I don't even know how to do it 'by hand').

Saso
by miskox
05 Mar 2025 05:09
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 73
Views: 257569

Re: Dos Batch Math Library

@einstein1969:

Thanks.

Makes sense.

Saso
by miskox
24 Feb 2025 23:53
Forum: DOS Batch Forum
Topic: Put Desktop to sleep from Laptop
Replies: 5
Views: 5639

Re: Put Desktop to sleep from Laptop

Unfortunately that has nothing to do with my problem. Info in the link: Seems for Win11 it is turned off to use SLEEP function due to Modern StandBy S0 mode and I went into BIOS and changed the sleep mode to Linux (S3) just to see what happens. Then I was able to put the PC to sleep. Read entire th...
by miskox
20 Feb 2025 12:52
Forum: DOS Batch Forum
Topic: how to get the string after "REG_SZ" or "REG_DWORD"?
Replies: 6
Views: 6959

Re: how to get the string after "REG_SZ" or "REG_DWORD"?

I don't know if parenthesis ( "(" and ")" ) are part of the string. So if they are not then maybe you could just remove strings 'wallpaper' and 'reg_szs' and you have a result. Or maybe take a colon (:) as a delimiter. Take the first argument and take the last character and then add the second argum...
by miskox
20 Feb 2025 00:54
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 12396

Re: disable x button

Thanks again!

You always have a clever solution (short and efficient).

Saso
by miskox
19 Feb 2025 11:52
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 12396

Re: disable x button

I checked your FOR solution. It is great. And as you mention I can add additional check for the current directory.

The idea with the 2>nul is also great.

Thanks for the help.
Saso
by miskox
19 Feb 2025 01:45
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 12396

Re: disable x button

Thanks Steffen. Of course code could be shortened: disableX.exe 1 set errlev=%errorlevel% if "%errlev%"=="99" if "%username%"=="JOHN" disableX.exe if "%errlev%"=="99" if "%username%"=="JANE" disableX.exe if "%errlev%"=="99" if "%username%"=="MARY" disableX.exe if "%errlev%"=="99" if "%username%"=="J...
by miskox
18 Feb 2025 11:20
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 12396

Re: disable x button

Thanks Steffen! I don't think there is a need for an assembler code. C would do - even if .exe is bigger in size. Maybe just adding an IF: if parameter1="1" then exit 99 So if I execute disableX.exe 1 if "%errorlevel%"=="99" echo DISABLEX found. set disablex_exists=0 disableX.exe 1 if "%errorlevel%"...
by miskox
17 Feb 2025 16:38
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 12396

Re: disable x button

I find this disablex.exe very useful now. But I have a problem: I would like to check if disablex.exe is in the path so I would need something like disablex.exe /v /v version info or something - so running the .exe does not disable the 'X'. If disablex.exe is not in the path I get errorlevel=9009 bu...
by miskox
12 Feb 2025 13:02
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 73
Views: 257569

Re: Dos Batch Math Library

Aacini wrote:
23 May 2023 10:54

I think at first that the 10000*y/10/2 part could be changed to 10000*y/5, but doing that cause errors in the angles 1077..4000

+1 :D

Antonio
Could

10000*y/10/2

be written as

500*y ? Or it doesn't work as /5 did not?

(I am on a Phone and can't test this at the moment)

Saso