title: Run a script file as administrator
body: <p>I have this .vbs script that I am trying to run on windows 7. 
  It has to run with full permissions and it has to do it automatically. 
  To be clear When the user double clicks on the file it will get the prompt that asks "to allow to run the file as an administrator", and then run with full permissions. </p>
  
  <p>To do this I created a batch file (run.bat) that calls the script file </p>
  
  <pre><code>cscript "V02.vbs"
  pause
  </code></pre>
  
  <p>then I created a shortcut for the batch file which I can choose to run as admin. </p>
  
  <p>The problem I encounter now is that when I run the batch file as admin the folder changes to c\windows\system32. The script, batch file and shortcut are all in the same folder. is there a way to get the folder location? </p>