Search the program directory on all NT machines in a domain for folders with the string "Netscape", "ftp" or "ICQ" in the name
Top  Previous  Next


[Aux_Begin]
DOS del c:\temp\tmp.txt
DOS dir \\%machine%\c$\program >c:\temp\tmp.txt
Import.Textfile c:\temp\tmp.txt ; PROG ; 5 ; 2 ; convert
DOS del c:\temp\tmp.txt
DOS dir "\\%machine%\c$\program files" >c:\temp\tmp.txt
Import.Textfile c:\temp\tmp.txt ; PROG_F ; 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-% =*netscape* or %col3-% =*ftp* or %col3-% =*icq*
If Filter
DOS del c:\temp\tmp.txt
Write.File c:\temp\tmp.txt ; Filter ;%col1-%
DOS net send administrator "NTreport found %FilterRows% folder(s)
Endif
[Batch_End]