mhaeri
یک شنبه 12 شهریور 1385, 16:01 عصر
Function CheckFileExists(sFileName)
اگر میشه اشکال این تکه کد رو بگید
من موقع اجرا این Error رو می گیرم
"Runtime error 424. Object Required"
اینم کد:
Dim FileSystemObject
Set FileSystemObject = Server.CreateObject("Scripting.FileSystemObject")
If (FileSystemObject.FileExists(sFileName)) Then
CheckFileExists = True
Else
CheckFileExists = False
End If
Set FileSystemObject = Nothing
End Function
اگر میشه اشکال این تکه کد رو بگید
من موقع اجرا این Error رو می گیرم
"Runtime error 424. Object Required"
اینم کد:
Dim FileSystemObject
Set FileSystemObject = Server.CreateObject("Scripting.FileSystemObject")
If (FileSystemObject.FileExists(sFileName)) Then
CheckFileExists = True
Else
CheckFileExists = False
End If
Set FileSystemObject = Nothing
End Function