title: Relative network path in a .bat file
body: <p>I need to run a .bat file in a network path (UNC path).</p>
  
  <p>At the beginning, my bat file was something like this</p>
  
  <pre><code>cd subfolder
  some file operations
  </code></pre>
  
  <p>When I tested it on my local computer, it worked, but when I move the file to a network directory, I have:</p>
  
  <pre><code>'\\ComputerName\SharedFolder\Resource' is an invalid current directory path. UNC paths are not supported.
  Defaulting to Windows directory.
  C:\Windows
  </code></pre>
  
  <p>I tried to use <code>pushd</code> command, but it didn't help:</p>
  
  <pre><code>pushd subfolder
  some file operations
  </code></pre>
  
  <p> </p>
  
  <pre><code>'\\ComputerName\SharedFolder\Resource' is an invalid current directory path. UNC paths are not supported.
  Defaulting to Windows directory.
  C:\Windows&gt;pushd subfolder
  No such directory.
  </code></pre>
  
  <p>I can of course write something like this</p>
  
  <pre><code>pushd \\ComputerName\SharedFolder\Resource\subfolder
  </code></pre>
  
  <p>but I want to use the same .bat file in several folders, so I want to use a relative path. Is it possible?</p>