我想創建一個批處理文件,將Access 2016前端複製到桌面上。我試圖理解下面的例子:批量文件分發訪問前端
@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 >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 >NUL
Start /max "C:\Program Files (x86)\Microsoft Office\OFFICE15\MSACCESS.EXE" "C:\MyApplication\Profiles\%username%\REgulatory_JohnGault.accdb"
exit
有人能解釋一下在下一步中完成什麼嗎?
REM TYPE NUL | choice /c:delay /td,5 >NUL
Start /max "C:\Program Files (x86)\Microsoft Office\OFFICE15\MSACCESS.EXE" "\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\Profiles\%username%\MyApplication_JohnGault.accdb"
exit
代碼指的是應用程序的前端/後端嗎?我認爲
\\MySharePath\MyNetworkFolder\Admin\MyDivision\MyApplication\MyApplication_JohnGault.accdb
被引用的前端,不是嗎?
如果有人能解釋每一步發生了什麼,將不勝感激。
謝謝。
沒有直接回答,而是備用和健壯的方法:[將Access 2007數據庫與SQL後端部署到Citrix for multiple users](http://stackoverflow.com/questions/34097886/deploy-access-2007-database-with-sql-back-end-to - Citrix-for-multiple-users/34150736#34150736) – Gustav