DefinityCorporation
IS-IT--Management
I need a script to verify files exist. Preferably just give a list of missing file numbers. Files are 10000001.pdf ~ 99999999.pdf. Here is what I came up with (total newbie) this doesnt work and is probably garbage. HELP! I can't count 99 million files!!! Thanks!
'-----------------------------------------------------------
Dim fso, f1, N
Set N=10000000
start
Do While N <99999999
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.GetFile("c:\"" & N"".pdf")
If fso.FileExists(f1) Then
Response.Write "File found: " & f1.name
Else If
Response.Write "***MISSING FILE: " & f1.name
End If
Set N = N+1
loop
'---------------------------------------------------------
'-----------------------------------------------------------
Dim fso, f1, N
Set N=10000000
start
Do While N <99999999
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.GetFile("c:\"" & N"".pdf")
If fso.FileExists(f1) Then
Response.Write "File found: " & f1.name
Else If
Response.Write "***MISSING FILE: " & f1.name
End If
Set N = N+1
loop
'---------------------------------------------------------