suppose name of this page is
IsFoderExists.asp
<![CDATA[<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FolderExists("D:\java\x.java.txt")=true then
response.write("Folder c:\asp exists!")
else
response.write("Folder c:\asp does not exist!")
end if
set fs=nothing
%>
write javascript to call this page...
function IsFolderExists()
{
if (window.XMLHttpRequest)
{
xmlhttp1=new XMLHttpRequest();
}
else
{
xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp1.onreadystatechange=function()
{
if (xmlhttp1.readyState==4 && xmlhttp1.status==200)
{
response.write(xmlhttp1.responseText);
}
}
xmlhttp1.open("GET","IsFolderExists.asp",true);
xmlhttp1.send();
return false;
}
Happy Coding!
:)