John Stockton
2022-04-14 14:05:39 UTC
I use code like the following, in batch files running in a Command Prompt window, to display the content of a freshly-written plain-text file in a normal window. From there, I selectively copy'n'paste into a Command Prompt window.
set DIFF_TXT=%LOGDIR%\$ORPHANS.TXT
REM write to $orphans.txt
start iexplore.exe %DIFF_TXT%
I don't want to continue with Internet Explorer, as it is dying.
I could use Notepad, except that I want the content of the window to be unalterable (except by scrolling and resizing; being un-saveable is irrelevant)
I could use another browser, but I chose to use Internet Explorer because I never use it otherwise at that time and I therefore get a new on-top window.
So : is there another means of displaying, from within Batch, a file in a read-only window (required for Win 10, might be wanted in Win 7 or Win 11)?
Otherwise, how/can I create a suitable window/dialog, with copy'n'paste, using VBScript?
set DIFF_TXT=%LOGDIR%\$ORPHANS.TXT
REM write to $orphans.txt
start iexplore.exe %DIFF_TXT%
I don't want to continue with Internet Explorer, as it is dying.
I could use Notepad, except that I want the content of the window to be unalterable (except by scrolling and resizing; being un-saveable is irrelevant)
I could use another browser, but I chose to use Internet Explorer because I never use it otherwise at that time and I therefore get a new on-top window.
So : is there another means of displaying, from within Batch, a file in a read-only window (required for Win 10, might be wanted in Win 7 or Win 11)?
Otherwise, how/can I create a suitable window/dialog, with copy'n'paste, using VBScript?
--
(c) John Stockton, near London, UK. Using Google Groups. |
(c) John Stockton, near London, UK. Using Google Groups. |