arabiafish
asked on
jscript fileexists not working
I've tried every conceivable file, both absolute and relative paths, in the same folder and in the root directory, and it simply doesn't work. It always says not found. Any suggestions?
var fs = new ActiveXObject("Scripting.F ileSystemO bject");
if(fs.FileExists("test.asp ") == true)
{
Response.Write("File exists.")
}
else
{
Response.Write("File does not exist.")
}
var fs = new ActiveXObject("Scripting.F
if(fs.FileExists("test.asp
{
Response.Write("File exists.")
}
else
{
Response.Write("File does not exist.")
}
Is this client or server code? I am assuming the file is on the server, right?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thank you arabiafish. (O:=