title: JavaScript: Read files in folder
body: <p><strong>EDIT:</strong> I'm trying to read all the files in a specific folder and list the files in there, not read the content of a specific file. I just tried to simply create an FileSystemObject and it doesn't do anything either. I show an alert (which pops up) beforfe making the FileSystemObject, and one after it (which isn't shown). So the problem is in simply creating the object. </p>
  
  <p><strong>Original:</strong></p>
  
  <p>I am trying to read all the files in a folder by using JavaScript.</p>
  
  <p>It is a local HTML file, and it will not be on a server, so I can't use PHP I guess.</p>
  
  <p>Now I'm trying to read all the files in a specific given folder, but it doesn't do anything on the point I make a <code>FileSystemObject</code></p>
  
  <p>Here is the code I use, The alert shows until 2, then it stops.</p>
  
  <pre><code>    alert('1');
      var myObject, afolder, date;
      alert('2');
      myObject = new ActiveXObject("Scripting.FileSystemObject");
      alert('3');
      afolder = myObject.GetFolder("c:\\tmp");
      alert('4');
      date = afolder.DateLastAccessed;
      alert("The folder"+name+" is a temporary folder.");
  </code></pre>
  
  <p>Am I doing this the right way? </p>
  
  <p>Thanks!</p>