title: Using IF statement with Net Use
body: <p>I'm trying to create a simple batch to map drive D or E of a remote computer. I want the batch to try mapping D drive, and if D drive is not available, then Map E.</p>
  
  <p>Example,</p>
  
  <p>Try mapping \server\D$\FolderName, if it returns an error, then map \server\E$\FolderName.</p>
  
  <p>FolerName is a static name and will not change. However it could be in D: or E: on the remote computer.</p>
  
  <p>Note: The remote computer requires a local login and the computer i'm mapping from uses domain login.</p>