|
-
Sep 5th, 2001, 04:12 AM
#1
Thread Starter
Addicted Member
recursive file delete
i need to do a recursive file delete of *.lnk can anyone help?
Due to the energy crisis, the light at the end of the tunnel has been turned off.
Sorry for any inconvenience this may cause
-
Sep 5th, 2001, 04:18 AM
#2
Retired VBF Adm1nistrator
In a specific directory, or through all subdirectories too ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Sep 5th, 2001, 04:35 AM
#3
Thread Starter
Addicted Member
recursive = subdirectories
Due to the energy crisis, the light at the end of the tunnel has been turned off.
Sorry for any inconvenience this may cause
-
Sep 5th, 2001, 04:39 AM
#4
Registered User
-
Sep 5th, 2001, 04:52 AM
#5
Retired VBF Adm1nistrator
Originally posted by aturner
recursive = subdirectories
Recursive does not mean subdirectories.
It means to call the operation from inside itself.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Sep 5th, 2001, 05:04 AM
#6
Thread Starter
Addicted Member
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
Due to the energy crisis, the light at the end of the tunnel has been turned off.
Sorry for any inconvenience this may cause
-
Sep 5th, 2001, 05:54 AM
#7
Retired VBF Adm1nistrator
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.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|