John Stockton
2023-03-05 21:28:54 UTC
I have scripts which generate (in %TEMP%) a plain-text file of batch code, and I want to read this file by eye, in a new plain Window, then manually copy'n'paste or drag'n'drop selected lines or contiguous groups of lines into a Command Prompt window, which will be ready and waiting. The lines all start "DEL" or "RD"; but must be thought about and selected before execution. I want to be UNABLE to alter the characters displayed, apart from by scrolling.
The batch command
START MSEDGE %1
does this, except that it does not work in Windows XP and that it opens a new tab rather than a new Window. In any case, EDGE is "a sledgehammer to crack a nut", and I don't want to have a window/tab which looks in the least like any browser that I have open.
So : is there an obscure but standard small part of Windows 10+ that can display a text file in a simple non-editable Window that supports Ctrl-C and vertical scroll? Notepad would do nicely, if it could be opened in a non-edit mode.
Can VBScript or JScript called from batch create such a Window _easily_?
Ideally, but certainly not essentially, I would like the displayed text to ge on a light-coloured background !
The batch command
START MSEDGE %1
does this, except that it does not work in Windows XP and that it opens a new tab rather than a new Window. In any case, EDGE is "a sledgehammer to crack a nut", and I don't want to have a window/tab which looks in the least like any browser that I have open.
So : is there an obscure but standard small part of Windows 10+ that can display a text file in a simple non-editable Window that supports Ctrl-C and vertical scroll? Notepad would do nicely, if it could be opened in a non-edit mode.
Can VBScript or JScript called from batch create such a Window _easily_?
Ideally, but certainly not essentially, I would like the displayed text to ge on a light-coloured background !
--
(c) John Stockton, near London, UK. Using Google Groups. |
(c) John Stockton, near London, UK. Using Google Groups. |