Search found 648 matches

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

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

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

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

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

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

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

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

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

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

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

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
by miskox
05 Feb 2025 01:34
Forum: DOS Batch Forum
Topic: how to get the string after "REG_SZ" or "REG_DWORD"?
Replies: 6
Views: 5917

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

Here are two methods: string replacement or FOR. @echo off echo method 1 echo # should not be in the folder name or file name. Should be changed otherwise. set value1=W:\\Dune 2 - Remake\\dunedynasty.exe REG_SZ WINXPSP3 echo value1=%value1% set value2=%value1: REG_SZ =#% set value2=%value1: REG_DWOR...
by miskox
20 Jan 2025 02:55
Forum: DOS Batch Forum
Topic: Use Netsh to save ip gw dns to variables for project
Replies: 6
Views: 6792

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

Please use code tags. See set /? where Environment variable substitution has been enhanced as follows: %PATH:str1=str2% would expand the PATH environment variable, substituting each occurrence of "str1" in the expanded result with "str2". "str2" can be the empty string to effectively delete all occu...