home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,859 of 68,980   
   JJ to John Stockton   
   Re: Batch line to display readonly text    
   15 Apr 22 17:52:21   
   
   From: jj4public@gmail.com   
      
   On Thu, 14 Apr 2022 07:05:39 -0700 (PDT), John Stockton wrote:   
   > 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?   
      
   You can use HTML Application. The command line is pretty long, so it's in   
   Pastebin.   
      
   https://pastebin.com/GGSFdbG7   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca