Search found 655 matches

by miskox
03 Jul 2025 04:38
Forum: DOS Batch Forum
Topic: VBS returns localized TRUE/FALSE
Replies: 2
Views: 18

Re: VBS returns localized TRUE/FALSE

I also had this solution: findstr /R "^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\;" file.txt>tmp1.tmp findstr /R "\;[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]$" tmp1.tmp>tmp2.tmp but Dave writes here https://stackoverflow.com/questions/2635740/why-does-findstr-not-handle-ca...
by miskox
03 Jul 2025 01:36
Forum: DOS Batch Forum
Topic: VBS returns localized TRUE/FALSE
Replies: 2
Views: 18

VBS returns localized TRUE/FALSE

Windows 10, 64 bit, Slovenian. I would like to check if a variable has only numeric characters, is date and if it's length is exactly 13 characters. I have this: @echo off set numbe=1234567890123 set datte=2024-08-01 >tmp.vbs echo n=isnumeric("%numbe%") : d=isdate("%datte%") : L=len("%numbe%") >>tmp...
by miskox
30 Jun 2025 02:08
Forum: DOS Batch Forum
Topic: Get set /p to accept file suffix.
Replies: 11
Views: 122

Re: Get set /p to accept file suffix.

Works as expected. c:\temp>a >Enter the 'File Type' [Suffix] including the decimal point and Asterix if applicable and press <Enter>: *.xls* *.xls* >Enter the 'File Type' [Suffix] including the decimal point and Asterix if applicable and press <Enter>: .xls* .xls* >Enter the 'File Type' [Suffix] inc...
by miskox
29 Jun 2025 11:25
Forum: DOS Batch Forum
Topic: Get set /p to accept file suffix.
Replies: 11
Views: 122

Re: Get set /p to accept file suffix.

miskox wrote:
29 Jun 2025 11:25
Works for me too.

Windows 10, 64-bit.

Why don't you show us your result?

Saso
by miskox
29 Jun 2025 11:25
Forum: DOS Batch Forum
Topic: Get set /p to accept file suffix.
Replies: 11
Views: 122

Re: Get set /p to accept file suffix.

Works for me too.

Windows 10, 64-bit.

Saso
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: 80041

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

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

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

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

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

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

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

Re: disable x button

Thanks again!

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

Saso