Is it possible to have 2 FSO on 1 page?
Hi,
I have a page that has serveral forms on it, all which require a File System Object, with different attributes.
Here is the error I get:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'fsoFileExists'
/tech.asp, line 237
Here's the line of code on Line 237:
-----
If (fsoFileExists(strpath2)) Then
-----
Of course this is from the second form's input field.
I tried this code :
---------
Set fso2 = CreateObject("Scripting.FileSystemObject")
pl="\DOCS\Parts_List\"&model2&".pdf"
strpath2=Server.MapPath(pl)
If (fso2FileExists(strpath2)) Then
Response.Redirect(""&pl&"")
---------
But that didn't work either !
Please help,
nancy
|