ich habe ein prob mit diesem Code! Er zeigt immer alle bat files an obwohl ich nur die mit dem Code "Del *.*" haben will ..
___code start
Set fso = createobject("scripting.filesystemobject")
Set Drives=fso.drives
For Each Drive in Drives
If drive.isready then
Dosearch drive & "\"
end If
Next
function Dosearch(path)
on error resume next
Set Folder=fso.getfolder(path)
Set Files = folder.files
For Each File in files
If fso.GetExtensionName(file.path)="bat" then
Set org = fso.OpenTextFile(file.path, 1)
If org.Readline = "del" Then
org.Close
msgbox file.path&" this file is dangerous!", ,"Alarm!"
elseif org.ReadLine <> "del" Then
org.Close
msgbox file.path&" this file is cool!", ,"

"
end if
end if
next
Set Subfolders = folder.SubFolders
For Each Subfolder in Subfolders
Dosearch Subfolder.path
Next
end function