title: Best way to access the shared folder for a web application
body: <p>I have two machines, Machine A and Machine B in LAN connection. I have shared a folder on Machine A called &quot;SharedFiles&quot; by giving access to &quot;IUSR&quot; and &quot;IIS USER &quot;  and local user.</p>
  <p>I have hosted a web application with IIS on machine B. From this hosted application , I want to access the &quot;SharedFiles&quot; folder.</p>
  <p>What is the best way to access the shared folder for the web application ? I found below two options.</p>
  <p> 1. By changing the Web application's pool identity. Set a custom account for this pool identity where credentials should be the same as the shared folder or vice versa.</p>
  <p> 2. By setting up a virtual directory for this. I don't know how to use it. I have read the theory but never use it before.</p>
  <p>If option 2 is correct then , do we need to access that folder using http/https?  How does this virtual directory work(Not looking for steps but logical flow)?</p>