It's a peculiarity of this forum that external links are only accessible if you open them in a new tab or window.
Steffen
Search found 4285 matches
- 22 May 2022 09:57
- Forum: DOS Batch Forum
- Topic: start GUI program from non-interactive session
- Replies: 6
- Views: 324
- 20 May 2022 12:48
- Forum: DOS Batch Forum
- Topic: BG kbd - always present key except letter one
- Replies: 5
- Views: 145
Re: BG kbd - always present key except letter one
Honestly I don't even expect latin letters to be present on every keyboard. Thinking of cyrillic or greek keyboard layouts for example. Maybe you'll have luck with 0-9 which should be at least more likely to exist than A-Z.
Steffen
Steffen
- 16 May 2022 10:02
- Forum: DOS Batch Forum
- Topic: File Info Output: Can I Restate Modification Date & Time?
- Replies: 7
- Views: 1214
Re: File Info Output: Can I Restate Modification Date & Time?
Whoa
Apparently I totally lost track of this thread, sorry.
Steffen

I'm under the same impression. Batch is going to get kicked out by PowerShell.Is it just me, or is there a lot less of that batch mastery these days? As I think of it, it's been a while since I saw much of it.
Steffen
- 16 May 2022 09:54
- Forum: DOS Batch Forum
- Topic: Run 64Bit MSConfig from a batch File
- Replies: 5
- Views: 223
Re: Run 64Bit MSConfig from a batch File
Microsoft documented how file system redirection is implemented:
https://docs.microsoft.com/en-us/window ... redirector
Maybe this sheds some light on it.
Steffen
https://docs.microsoft.com/en-us/window ... redirector
Maybe this sheds some light on it.
Steffen
- 16 May 2022 03:56
- Forum: DOS Batch Forum
- Topic: Run 64Bit MSConfig from a batch File
- Replies: 5
- Views: 223
Re: Run 64Bit MSConfig from a batch File
Your batch file should be running in the 64bit cmd.exe process automatically on a 64bit system (unless you do funny business like wrapping it into a 32bit bat2exe thingy, or you changed the PATH environment to look for system tools in the SysWOW64 folder first). Thus, it should also find the right m...
- 16 May 2022 03:47
- Forum: DOS Batch Forum
- Topic: start GUI program from non-interactive session
- Replies: 6
- Views: 324
Re: start GUI program from non-interactive session
Thanks for the update. I haven't had any good idea since manyfold things can prevent you to get this working. Just a side note if you want to tell the developer - every GUI process can attach the console window of the parent process in order to make it a console program, too. I find it a bad design ...
- 12 May 2022 06:08
- Forum: DOS Batch Forum
- Topic: hextostr.exe - convert a passed HEX string into a string of characters
- Replies: 2
- Views: 344
Re: hextostr.exe - convert a passed HEX string into a string of characters
Thanks for your feedback @lazna! Yeah, I didn't expect the tool to be much faster than others. The algorithms are more or less always the same. I just tried to be smart by avoiding memory allocations and by using a lookup array. However, the improvement is likely only a few milliseconds in the end. ...
- 09 May 2022 13:57
- Forum: DOS Batch Forum
- Topic: hextostr.exe - convert a passed HEX string into a string of characters
- Replies: 2
- Views: 344
hextostr.exe - convert a passed HEX string into a string of characters
A few days ago @lazna asked for a tool to convert a HEX string to text. So, I wrote a few lines in C. Pass the HEX string as argument to hextostr.exe. The converted text is written to the standard output stream. The lightweight 32 bit executable is highly liberal in what it accepts. Every found pair...
- 06 May 2022 09:38
- Forum: DOS Batch Forum
- Topic: Open, Add Line, Save, Next File Help
- Replies: 6
- Views: 380
Re: Open, Add Line, Save, Next File Help
I tested the script with your files and it seems to just insert the line as expected. However, I have really no idea what you tried to tell about red to yellow and yellow to red. Did you mean the highlighting that your editor performs? I'm asking because highlighting is always specific to used edito...
- 05 May 2022 11:04
- Forum: DOS Batch Forum
- Topic: Open, Add Line, Save, Next File Help
- Replies: 6
- Views: 380
Re: Open, Add Line, Save, Next File Help
Probably something about like that: @echo off &setlocal EnableDelayedExpansion for %%i in (*.xml) do ( <"%%~i" set /p "firstLine=" >"%%~i.~tmp" echo !firstLine! >>"%%~i.~tmp" echo ^<?xml-stylesheet type="text/xsl" href="survey.xsl"?^> >>"%%~i.~tmp" more +1 "%%i" move /y "%%~i.~tmp" "%%i" ) Note: Don...
- 04 May 2022 11:33
- Forum: DOS Batch Forum
- Topic: How to get the second last folder if the last folder not contain the desired file yet
- Replies: 2
- Views: 355
Re: How to get the second last folder if the last folder not contain the desired file yet
Reverse the sorting (newest folder first) and bail out when the folder containing the zip file is found. Untested: FOR /F "delims=" %%i IN ('dir "%remotesource%\%plannum%\shared" /b /ad-h /t:c /o-d') DO ( IF EXIST "%remotesource%\%plannum%\shared\%%i\A591\*_%flavr%_*.zip" ( SET "newfld=%%i" GOTO :en...
- 02 May 2022 14:55
- Forum: DOS Batch Forum
- Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
- Replies: 527
- Views: 614199
Re: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
I'm using JREPL on Win 11 without any problems. If you have issues please elaborate on how to reproduce them.
Steffen
Steffen
- 02 May 2022 00:04
- Forum: DOS Batch Forum
- Topic: drag and drop multiple file on a bat file
- Replies: 4
- Views: 427
Re: drag and drop multiple file on a bat file
My bad, sorry. I added the START command because people usually ask for asynchronous processing of several files
Steffen

Steffen
- 01 May 2022 12:36
- Forum: DOS Batch Forum
- Topic: drag and drop multiple file on a bat file
- Replies: 4
- Views: 427
Re: drag and drop multiple file on a bat file
Something about like that:
Note that the batch code receives the whole path for each file. At some point (depending on the length of the path) you will exceed the maximum length of a command line if you drop too many files.
Steffen
Code: Select all
@echo off &setlocal
for %%i in (%*) do start "" notepad %%i
Steffen
- 30 Apr 2022 06:03
- Forum: DOS Batch Forum
- Topic: how to make bat and txt file
- Replies: 14
- Views: 753
Re: how to make bat and txt file
Making the section detection a little more robust (in terms of additional spaces), but also more weak. @echo off &setlocal set "inifile=config.ini" set "section=DelayWakeUp" set "key=TimeUP" setlocal EnableDelayedExpansion set "inSection=" <"!inifile!" ( for /f %%i in ('type "!inifile!"^|find /c /v ...