Search for folders with the string "found" in the name on C:\ on all NT machines in a domain
Top  Previous  Next


[Aux_Begin]
DOS del c:\temp\tmp.txt
DOS dir \\%machine%\c$ >c:\temp\tmp.txt
Import.Textfile c:\temp\tmp.txt ; ROOT ; 5 ; 2 ; convert
[Aux_End]

[Settings_Begin]
FileType=NTreport
NTinfo.Name.All.Rows=Yes
NTreport.Delimiter=,
NTinfo.Aux=Yes
[Settings_End]

[Batch_Begin]
Clear.Window Main
Get.Data D26
Filter %col3-% =*<DIR>* AND %col3-%=*found*
If Filter
DOS del c;\temp\tmp.txt
Write.File c:\temp\tmp.txt ; Filter ;%date% %time% %col1-%
DOS net send administrator "NTreport found %FilterRows% folder(s)
Endif
[Batch_End]

·Chkdsk.exe creates found.000 found.001 etc. when fixing errors