Ragazzi,
in un mio programma

creo due oggetti file :

Set newFs1 = Server.CreateObject("Scripting.FileSystemObject")
Set newFs2 = Server.CreateObject("Scripting.FileSystemObject")

....

alla fine del programma li devo chiudere, ma non sò se li ho aperti tutti e due e quindi:


if newFile1 then
newFile1.Close
set oldFile = nothing
end if

if newFile2 then
newFile2.Close
set newFile2 = nothing
end if

però così non funziona non c'è un metodo che mi permetta di sapere se l'oggetto newFs1 e attivo o meno?