Search found 4550 matches

by aGerman
11 May 2025 16:20
Forum: DOS Batch Forum
Topic: Accessing the Control Panel.
Replies: 8
Views: 85

Re: Accessing the Control Panel.

I checked all menu items in the English version. All work as expected. One minor flaw in the graphics - the date format is localized (like many other things in Batch). In my environment it's only 10 characters DD.MM.YYYY. Something like %DATE:~0,15% can't make it longer. Fixing this is easy though. ...
by aGerman
11 May 2025 12:49
Forum: DOS Batch Forum
Topic: Accessing the Control Panel.
Replies: 8
Views: 85

Re: Accessing the Control Panel.

The subroutine comes at the very end of your script, after your current code. Calling it to initialize the macro somewhere at the beginning, e.g. after @echo off or after setlocal. (The explanation about the meaning of the "magic numbers" is of course only a comment for those who are interested in w...
by aGerman
11 May 2025 08:53
Forum: DOS Batch Forum
Topic: Accessing the Control Panel.
Replies: 8
Views: 85

Re: Accessing the Control Panel.

I just hope that the script really directs to the right interfaces That's precisely what I want to know. Don't worry. If it works in Spanish, then it works in any other language as well. The parameters you pass to get to the different interfaces are not localized. Actually, what I want is to preven...
by aGerman
11 May 2025 03:53
Forum: DOS Batch Forum
Topic: Accessing the Control Panel.
Replies: 8
Views: 85

Re: Accessing the Control Panel.

Hello Eduardo, I'm running the latest Windows 11 with German language settings. However, it seems to work and out of my experience it should work on Win 10 English as well in that case. As I don't speak Spanish, I just hope that the script really directs to the right interfaces. Just to add... - Peo...
by aGerman
04 May 2025 04:20
Forum: DOS Batch Forum
Topic: …and we’re back!
Replies: 3
Views: 2140

Re: …and we’re back!

The certificate expires once after three months, the admin said. Usually it gets renewed automatically. It's unknown why it didn't happen to work this time.
by aGerman
24 Feb 2025 10:23
Forum: DOS Batch Forum
Topic: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
Replies: 4
Views: 3877

Re: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question

can i try the application?
Only if you write such an application :lol: I don't have something like that lying around.
by aGerman
23 Feb 2025 06:54
Forum: DOS Batch Forum
Topic: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
Replies: 4
Views: 3877

Re: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question

To handle the clipboard you need to involve other languages like PowerShell, VBScript or JScript. https://www.dostips.com/forum/viewtopic.php?f=3&t=3058 Furthermore I'm not aware of any command to override Ctrl+C because the keyboard input is send to the application with the keyboard focus. In a Win...
by aGerman
23 Feb 2025 06:28
Forum: DOS Batch Forum
Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
Replies: 8
Views: 5075

Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)

First of all I guess I still misinterpreted things. You're running DOSBox-X rather than DOSBox. The little experience I have is with DOSBox (10 or 15 years ago I had to work around an old printer software on our shop floor ...). I don't know anything about DOSBox-X and how it behaves. i actually do ...
by aGerman
23 Feb 2025 04:14
Forum: DOS Batch Forum
Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
Replies: 8
Views: 5075

Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)

I think the problem lies somewhere else. set "T1=C:\Utility\DOSBox-X\BatchBox" This indicates that you're running code in DosBox that implements its own command line interpreter. It inherently supports only a narrow subset of the commands of the old "command.com". this is an old DOS What exactly? If...
by aGerman
19 Feb 2025 13:25
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 9982

Re: disable x button

miskox wrote:
19 Feb 2025 11:52
And as you mention I can add additional check for the current directory.
You can explicitly add the current work dir to PATH for the running cmd session.

Code: Select all

set "path=.;%path%"
After that, the expansion using ~$path: takes it into account.

Steffen
by aGerman
19 Feb 2025 10:12
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 9982

Re: disable x button

Calling a non-existing tool will make the CMD to throw an error. Regardless if you call it with or without an argument. So isn't that the same thing? : set user_"list=#JOHN#JANE#MARY#JILL#MIKE#" call set "tmp_str=%%user_list:#%username%#=X%%" if not "%tmp_str%"=="%user_list%" disableX.exe If you wan...
by aGerman
18 Feb 2025 13:49
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 9982

Re: disable x button

there is no need to complicate But this makes it overly complicated. You can check the existence of the tool and you have to check the user name anyway, so you can just contitionally call the tool. I still don't get the point why the update of the tool is needed. Nevermind... Pass 1 and you'll get ...
by aGerman
18 Feb 2025 10:24
Forum: DOS Batch Forum
Topic: disable x button
Replies: 10
Views: 9982

Re: disable x button

I think even with some trickery I don't get it that lightweight again. (Antonio might be able using Assembler though.) However, you can always check if an executable is found in the PATH. Use the ~$path: modifier of FOR variables. for %%i in ("whatever.exe") do if "%%~$path:i"=="" echo Not found. St...
by aGerman
13 Feb 2025 10:16
Forum: DOS Batch Forum
Topic: Change desktop wallpaper
Replies: 21
Views: 35075

Re: Change desktop wallpaper

OK here you go. I used the script from #14 as a template. The new %set_monitor_wallpaper% macro expects 3 arguments with the first being the monitor index (refer to the remarks in the code). At least Windows 8 is required as the IDesktopWallpaper interface is not supported on older versions. @echo o...
by aGerman
13 Feb 2025 10:03
Forum: DOS Batch Forum
Topic: Issue with Directory Extraction & Spaces
Replies: 5
Views: 4891

Re: Issue with Directory Extraction & Spaces

But this topic is about the oposite (keep everything except the drive).