title: batch file to distribute Access front end
body: <p>I'm trying to create a batch file that will copy Access 2016 front end to the Desk top. I've trying to understand the example below:</p>
  
  <pre><code>    @echo Please wait while the version of the database you requested is updated to your desktop.
      @echo off
      @echo %username%
      if not EXIST "C:\MyApplication\Profiles\%username%" GoTo LocalFileFolderWasNotThere
      xcopy /Q /Y "\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\MyApplication_JohnGault.accdb" "C:\MyApplication\Profiles\%username%\*.*"
      REM TYPE NUL | choice /c:delay /td,5 &gt;NUL
      Start /max "C:\Program Files (x86)\Microsoft Office\OFFICE15\MSACCESS.EXE" "\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\Profiles\%username%\MyApplication_JohnGault.accdb" 
      exit
      :LocalFileFolderWasNotThere
      @echo Creating You A New Profile
      MD "C:\MyApplication\Profiles\%username%"
      xcopy /Q /Y "\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\REgulatory_JohnGault.accdb" "C:\MyApplication\Profiles\%username%\*.*"
  REM TYPE NUL | choice /c:delay /td,5 &gt;NUL
  Start /max "C:\Program Files (x86)\Microsoft Office\OFFICE15\MSACCESS.EXE" "C:\MyApplication\Profiles\%username%\REgulatory_JohnGault.accdb" 
  exit
  </code></pre>
  
  <p>Could someone please explain what is accomplished in the following step?</p>
  
  <pre><code>REM TYPE NUL | choice /c:delay /td,5 &gt;NUL
  
      Start /max "C:\Program Files (x86)\Microsoft Office\OFFICE15\MSACCESS.EXE" "\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\Profiles\%username%\MyApplication_JohnGault.accdb" 
      exit
  </code></pre>
  
  <p>Is the code referring to the front/back end of the application here? I assumed that </p>
  
  <p><code>\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\MyApplication_JohnGault.accdb</code></p>
  
  <p>was referencing the front end, no?</p>
  
  <p>If someone could explain what's going on in each step, it would be greatly appreciated.</p>
  
  <p>Thank you.</p>