Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set fso=CreateObject("Scripting.FileSystemObject")
Set f=fso.GetFolder("C:\Path\to\folder")
Set fc=f.Files
For Each fl in fc
If Right(LCase(fl.Path),3)="txt" Then
Set ts=fl.OpenAsTextStream(1)
found=False
Do While Not ts.AtEndOfStream
If InStr(1,ts.ReadLine,"Searched String",1)>0 Then
Found=True
Exit Do
End If
Loop
ts.Close
If Found Then WScript.Echo fl.Path: fl.Delete
End If
Next