If I do the following :
------------------------------------
set fsd=Server.CreateObject("Scripting.FileSystemObjec t")
if fsd.fileexists("C:\inetpub\wwwroot\mysite\test.doc ") = true then
response.Write("EXISTS")
else
response.write "DOESNT EXIST"
end if
-------------------------------------
I get : "EXISTS"
-------------------------------------
However if I do this :
---------------------------------------
set fsd=Server.CreateObject("Scripting.FileSystemObjec t")
myfile = "C:\inetpub\wwwroot\mysite\test.doc"
if fsd.fileexists(myfile) = true then
response.Write("EXISTS")
else
response.write "DOESNT EXIST"
end if
---------------------------------
I get :"DOESNT EXIST"
---------------------------------
Can anyone help ?
This is driving me nuts.