Looking for text in a file
Posted: 31 Jan 2019 11:38
I am writing out a file and trying to find some text in the file. It isn't finding the text.
The file has in it:
I would like it to go to Done but it doesn't.
Docfxit
Code: Select all
Bootrec /scanos >"%~dp0BootFixerTest.txt"
type "%~dp0BootFixerTest.txt" |find /i "Windows installations: 0" >nul || goto :Done
Pause
:Done
Code: Select all
Scanning all disks for Windows installations.
Please wait, since this may take a while...
Successfully scanned Windows installations.
Total identified Windows installations: 0
The operation completed successfully.
Docfxit