Does anyone have any idea why this isn't working?
If Dir("C:\Custlink" <> "" Then
Kill ("C:\Custlink\*.*"
If Dir("C:\Custlink\Batch" <> "" Then
Kill ("C:\Custlink\Batch\*.*"
RmDir ("C:\Custlink\Batch"
If Dir("C:\Custlink\Copied" <> "" Then
Kill ("C:\Custlink\Copied\*.*"
RmDir ("C:\Custlink\Copied"
If Dir("C:\Custlink\Logs" <> "" Then
Kill ("C:\Custlink\Logs\*.*"
RmDir ("C:\Custlink\Logs"
RmDir ("C:\Custlink"
End If
End If
End If
End If
If Dir("C:\Custlink" <> "" Then
Kill ("C:\Custlink\*.*"
If Dir("C:\Custlink\Batch" <> "" Then
Kill ("C:\Custlink\Batch\*.*"
RmDir ("C:\Custlink\Batch"
If Dir("C:\Custlink\Copied" <> "" Then
Kill ("C:\Custlink\Copied\*.*"
RmDir ("C:\Custlink\Copied"
If Dir("C:\Custlink\Logs" <> "" Then
Kill ("C:\Custlink\Logs\*.*"
RmDir ("C:\Custlink\Logs"
RmDir ("C:\Custlink"
End If
End If
End If
End If