I am not sure what this does.
Code:
Request.Form("Archive").Count
What is Archive there in the form?
Code:
For i = 1 To intProofCount
strPath_Live = "c:\FileStorage\develope\Fun\" & strAdName
If i = 1 Then
If objFSO.FileExists(strPath_Live) Then
objFSO.DeleteFile(strPath_Live)
strEventText =strEventText & strPath_Live & "<BR>"
Else
strEventText =strEventText & "Did not find the file-" & strPath_Live & "<BR>"
End If
End If
'___This is for the version naming convention
If i < 10 Then
strFixCount = "0" & i
Else
strFixCount = i
End If
strPath_Version = "c:\FileStorage\develope\Fun\versions\" & strFixCount & "_" & strAdName
If objFSO.FileExists(strPath_Version) Then
objFSO.DeleteFile(strPath_Version)
strEventText =strEventText & strPath_Version & "<BR>"
Else
strEventText =strEventText & "Did not find the file-" & strPath_Version & "<BR>"
End If
Next
Does the code in red and that in blue not look similar for the first time, whe i=1? Does it mean that there are versions of filenames starting with "1" and "01" separately? Both red and blue codes are executed when i=1. Is that repetitive?
Cheers!
_________________________
- Vijay G
Strive for Perfection