i need to do a recursive file delete of *.lnk can anyone help?
Printable View
i need to do a recursive file delete of *.lnk can anyone help?
In a specific directory, or through all subdirectories too ?
recursive = subdirectories
Here you go.
To get you started:
http://pages.about.com/vbmakai/getfiles.htm
Recursive does not mean subdirectories.Quote:
Originally posted by aturner
recursive = subdirectories
It means to call the operation from inside itself.
so just to clear air, what is the definition of a recursive directory search
but yes, i would like to know how to search subdirectories
Recursive just means that the algorithm calls itself again on the results it produces.
So a recursive directory search would find all files/dirs in a given dir, and then all files/dirs in those dirs etc.
A recursive maths function for GCD could look like this :
VB Code:
Public Function GCD(num1 As Long, num2 As Long) As Long If (num1 = 1) Or (num2 = 1) Then GCD = 1 Else If (num1 = num2) Then GCD = num1 Else If (num1 > num2) Then GCD = GCD(num1 - num2, num2) Else GCD = GCD(num2 - num1, num1) End If End If End If End Function
A recursive file search doesnt mean very much....
But a file search that searched recursively through directories does.