G
Guest
Hello all,
I am working on an application that use the FileSystemObject to check if
a file exists. This works fine on my machine, but when i moved the
application to the webserver and tried to access it from a different machine,
i get this error. Is there a workaround?
"ActiveX component cannot create object: scripting.FileSystemObject"
this is the part of the code, its an ASP page
<script language="vbscript">
dim fs
set fs=CreateObject("Scripting.FileSystemObject")
if(fs.FileExists("F:\inetsrv\wwwroot\scripts\file1.txt"))=true then
'code
else
'code
end if
-
-
</script>
Thanks
I am working on an application that use the FileSystemObject to check if
a file exists. This works fine on my machine, but when i moved the
application to the webserver and tried to access it from a different machine,
i get this error. Is there a workaround?
"ActiveX component cannot create object: scripting.FileSystemObject"
this is the part of the code, its an ASP page
<script language="vbscript">
dim fs
set fs=CreateObject("Scripting.FileSystemObject")
if(fs.FileExists("F:\inetsrv\wwwroot\scripts\file1.txt"))=true then
'code
else
'code
end if
-
-
</script>
Thanks