<html> 
    <body> 
    <script language="JScript"> 
    <!-- 
    function checkfile() 
    { 
        var myObject; 
        myObject = new ActiveXObject("Scripting.FileSystemObject"); 
        if(myObject.FileExists("c:\\test.txt")){ 
           alert("File Exists"); 
        } else { 
           alert("File doesn't exist"); 
        } 
    } 
    --> 
    </script> 
    Check for file "test.txt" 
    <form name="myForm"> 
    <input type="Button" value="Check file" onClick='checkfile()'> 
    </form> 
    </body> 
    </html>
  |