title: preventing windows from prompting to open when running a javascript
body: <p>I have a javascript called <code>fancy.js</code>. I have a batch script that calls out to this <code>fancy.js</code> several times.</p>
  
  <p>When i run this batch script on my computer, it runs fine.</p>
  
  <p>When i run this batch script on a clean vm created for testing the script, it will prompt the user to open the file every time <code>fancy.js</code> is called. The dialog is similar to this: "do you want to open this file. File type: jscript script file, Publisher: unknown publisher".</p>
  
  <p><strong>How do i prevent it from prompting the user every time it attempts to run the <code>fancy.js</code>?</strong></p>
  
  <p>It was run inside an admin command prompt on a windows 7vm with a win7 host.</p>
  
  <p>I have this <code>cscript //h:cscript</code> at the top of the batch file. This is to prevent some prompts from coming up in older versions of windows.</p>
  
  <p>Thanks for the help!</p>