P
Poppy
If I do the following :
------------------------------------
set fsd=Server.CreateObject("Scripting.FileSystemObject")
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.FileSystemObject")
myfile = "C:\inetpub\wwwroot\mysite\test.doc"
if fsd.fileexists(myfile) = true then
response.Write("EXISTS")
else
response.write "DOESNT EXIST"
end if
------------------------------------
set fsd=Server.CreateObject("Scripting.FileSystemObject")
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.FileSystemObject")
myfile = "C:\inetpub\wwwroot\mysite\test.doc"
if fsd.fileexists(myfile) = true then
response.Write("EXISTS")
else
response.write "DOESNT EXIST"
end if