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,124 of 68,980   
   Docfxit to All   
   Re: Find string ?   
   07 Jan 18 12:50:05   
   
   From: docfxit@gmail.com   
      
   On Sunday, January 7, 2018 at 10:14:39 AM UTC-8, JJ wrote:   
   > On Sat, 6 Jan 2018 08:51:09 -0800 (PST), Docfxit wrote:   
   > > I currently have this line:   
   > > type "%~dp0BootFixerTest.txt" |find /i "Windows installations: 0" >nul ||   
   goto :Done   
   > >   
   > > It's not working correctly.   
   > > I believe it's currently going to :Done   
   > > Because "Windows installations: 0" is not in the file I don't want it to   
   go to :Done.   
   > [snip]   
   >   
   > If the text is not found, the execution will jump to the :Done label.   
   > Otherwise it continues to the next line.   
      
   How could I change it so it goes to Done only if the text is found?   
      
   Thank you,   
      
   Docfxit   
      
   --- 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