title: Javascript path to directory
body: <p>This snippet of JavaScript opens all files in a folder located on the Desktop and named "test".</p>
  
  <pre><code>var inputFolder = Folder( Folder.desktop + '/test' ); // Make sure this is correct for your hard coded path!
  </code></pre>
  
  <p>How can I make it open the directory "test", located in D:/directory/directory2/ ?</p>
  
  <p>Here is the full code, just in case someone will needed. It opens all psd files in a directory.</p>
  
  <pre><code>var inputFolder = Folder( Folder.desktop + '/test' ); // Make sure this is correct for    your hard coded path???
  
  var fileList = inputFolder.getFiles(/\.(psd)$/i);
  
  for ( var i = 0; i &lt; fileList.length; i++ ) {
  
     app.open( fileList[i] );
  
       };
  </code></pre>
  
  <p>Thank you!</p>