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 68,013 of 68,980   
   John Stockton to Robert Roland   
   Re: I want a non-editing file display Wi   
   06 Mar 23 05:11:24   
   
   From: dr.j.r.stockton@gmail.com   
      
   On Monday, 6 March 2023 at 09:56:04 UTC, Robert Roland wrote:   
   > On Sun, 5 Mar 2023 13:28:54 -0800 (PST), John Stockton   
   >  wrote:   
   >   
   > >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?   
   > How about PowerShell's Out-GridView?   
   >   
   > powershell -command "Get-Content -Path %1|Out-GridView -Wait"   
   >   
   > It can also be used to allow the user to select items and then return   
   > the selected items:   
   >   
   > powershell -command "Get-Content -Path %1|Out-GridView -OutputMode   
   > Multiple"   
   > --   
   > RoRo   
      
      
   Interesting - I know little of PowerShell.   
      
   I have just executed   
       Prompt>powershell /?   
   and therefore   
       Prompt>powershell /? > POWRSHEL.TXT   
   !   
      
   Your second example does what I want, except that the selected lines are shown   
   (in a rather small font) but not executed.  A simple copy'n'paste seems to fix   
   the latter.   
      
   I need to find Powershell  and Out-GridView reference material.   
      
   Thanks.   
      
      
   --   
     (c) John Stockton, near London, UK.  Using Google Groups.           |   
      
   --- 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