Eightball3
Programmer
Easyit posted the batch file code below a while back (thanks Easyit!)as a method to copy versioned front-ends to the user's computers. I like this approach but have one problem. I will not have mapped network drives (usually) on the users computers. Is there a way to do this using unc naming within a batch file?
Thanks.
Eightball
echo off
c:
cd\
if not exist C:\FCM\ mkdir C:\FCM\
cd FCM
REM check the version file to see if a newer version exists
REM and copy the front-end if necessary
if not exist "My_versionfile_1A.txt" copy "N:\public_server_folders \MyCompiledFrontEnd.mde" "c:\FCM\ MyCompiledFrontEnd.mde "
REM Now also copy the version file if there is a newr on the server
if not exist "My_versionfile_1A.txt" copy "N:\public_server_folders \MyCompiledFrontEnd.mde" "c:\FCM\ My_versionfile_1A.txt "
REM If the mde file is not present on the local folder, than make a copy
if not exist "c:\FCM\ MyCompiledFrontEnd.mde " copy "N:\public_server_folders \MyCompiledFrontEnd.mde" "c:\FCM\ MyCompiledFrontEnd.mde "
REM Now start up the Database. Make sure the paths are correct:
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "c:\FCM\ MyCompiledFrontEnd.mde " /WRKGRP " N:\public_server_folders\SYS_MyWorkGroupFile.mdw"
exit
Thanks.
Eightball
echo off
c:
cd\
if not exist C:\FCM\ mkdir C:\FCM\
cd FCM
REM check the version file to see if a newer version exists
REM and copy the front-end if necessary
if not exist "My_versionfile_1A.txt" copy "N:\public_server_folders \MyCompiledFrontEnd.mde" "c:\FCM\ MyCompiledFrontEnd.mde "
REM Now also copy the version file if there is a newr on the server
if not exist "My_versionfile_1A.txt" copy "N:\public_server_folders \MyCompiledFrontEnd.mde" "c:\FCM\ My_versionfile_1A.txt "
REM If the mde file is not present on the local folder, than make a copy
if not exist "c:\FCM\ MyCompiledFrontEnd.mde " copy "N:\public_server_folders \MyCompiledFrontEnd.mde" "c:\FCM\ MyCompiledFrontEnd.mde "
REM Now start up the Database. Make sure the paths are correct:
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "c:\FCM\ MyCompiledFrontEnd.mde " /WRKGRP " N:\public_server_folders\SYS_MyWorkGroupFile.mdw"
exit