XPost: alt.comp.os.windows-10   
   From: admin@127.0.0.1   
      
   On Wed, 8 Feb 2023 20:05:50 -0500   
   Wade Garrett wrote:   
      
   > On 2/8/2023 7:23 PM, Char Jackson wrote:   
   > >>> the TITLE command changes the title of the current window at anytime   
   > >>> while the batch is running.   
   > >>   
   > >>The annoying thing about the TITLE command is that, there's no way to   
   > >>restore the original title back, after it has been changed.   
   > >   
   > > Can you store it in a string variable, so that you can set it back to   
   > > the original value later?   
   >   
   > What's needed is that string variable to get the file name because the file   
   > name changes depending on the use, and then save it into that variable.   
   >   
   > Something like this pseudo code   
   >   
   > set TITLE=getfilename(current batch file name)   
      
   /That/'s easy:   
   title %0   
      
   Otherwise yes, set a string var:   
      
   set mytitle="Have a Nice Day"   
   rem set   
   title %mytitle%   
   pause   
   rem change   
   title temporary title   
   pause   
   rem restore   
   title %mytitle%   
      
   but yes, AFAICT there's no way to pick up the current title string.   
   --   
   Bah, and indeed Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|