Please help write in batch:
On disk c:\ I have folder named test;
in this folder I have subfolders with different names.
I need batch command to loop through all subfolders, and look for files named “Log” and/or “sqlite.sql”; if those files size < 0 Kb or do not exist then delete this subfolder with all files without prompt.
for each sub in Test
if Isfile("Log") or Isfile("sqlite.sql") and EachFileSizes > 0 Then
Else
Sub.delete
End If
next
The solution to this problem depends on the place of the subfolders. If they all are directly under C:\test (just one level deep), then this is the solution:
If subfolders may exist several levels deep beneath C:\test, then the solution is much more complicated.