home bbs files messages ]

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

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

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

   Message 42,088 of 42,547   
   JJ to All   
   Re: How do I run interactive commands   
   08 Nov 22 19:34:43   
   
   From: jj4public@outlook.com   
      
   On Mon, 7 Nov 2022 17:56:13 -0800, T wrote:   
   > Hi All,   
   >   
   > I am scratching my head trying to figure out how to   
   > gather information from a RAID controller.   
   >   
   > I need to issue the following commands to the controller's   
   > configuration utility:   
   >   
   >      hptraidconf   
   >      query array   
   >      exit   
   >   
   > In Linux bash programming, there is a way, but I   
   > know of no way to do it with Windows.   
   >   
   > Many thanks,   
   > -T   
      
   Try doing it like below.   
      
   @echo off   
   (   
     echo hptraidconf   
     echo query array   
     echo exit   
   ) | "c:\program files\raid mgmt\raid-configurator.exe"   
      
   --- 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