title: Unable to reference UNC paths while using wscript.shell from an ASP script?
body: <p>I'm having a problem executing a command from a command line through an ASP script using the wscript.shell object.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>inPath = server.mappath("/connect/dev_f_fusion3/video/6EA63679C27E48538D79F7C7295201CF/6EA63679C27E48538D79F7C7295201CF.mov")
  outPath = server.mappath("/connect/dev_f_fusion3/video/6EA63679C27E48538D79F7C7295201CF\6EA63679C27E48538D79F7C7295201CF.flv"
  outPath = "\\webdev2\SVC\streams\dev_f_fusion3\6EA63679C27E48538D79F7C7295201CF.flv"
  
  dim cmd
  dim wshell
  dim wffm
  
  cmd = """C:\Program Files\ffmpeg\ffmpeg.exe"" -i """ &amp; inPath &amp; """ -ar ""22050"" -ab ""32"" -f ""flv"" -s ""320x240"" """ &amp; outPath &amp; """"
  set wshell  = server.createobject("wscript.shell")
  set wffm = wshell.exec(cmd)
  
  set wffm = nothing
  set wshell = nothing
  </code></pre>
  
  <p>As you can see I've defined the variable outPath twice as an example for you to help me. With the first outPath assignment the wscript.shell object executes just fine, however, with the second outPath assignment it fails, leading me to believe it has something to do with the UNC path I've specified as the outPath.</p>
  
  <p>Is the wscript.shell object not allowed to access UNC paths? If so where I can change it so that it will allow them?</p>
  
  <p>Thanks for the help!</p>