have provided a user's desktop icon of the following batch file. it should copy a newest version of mde application from mapped G server drive to users pc and launch. it usually works fine but sometimes launches the existing mde instead of the new one. if this batch file is run several times, the correct program is finally copied and launched. OS are both Win2000 and XP Pro using a Novel network.
is there a way to force the copy over the existing mde to complete before the lauch? if it can not be copied, it should fail, not launch. delete first and then copy perhaps?
also, if the users mde is open, can this close it before the copy since two sessions result? if there is something else that could explain the older version being used, using this batch file, your thoughts will be welcome.
finally, is there a way to close the batch file when completed? now it stays in tray until Access is exited.
@Echo Off
CLS
Echo -=-=-=-=-=-= Tom Ball Software Updater =-=-=-=-=-
if not exist c:\refunds md c:\refunds
copy g:\"tax dept"\refunds\Real_Refunds.mde c:\refunds\Real_Refunds.mde /y
Echo Running Latest Version
rem pause
echo Launching Application ....
c:\refunds\Real_Refunds.mde
is there a way to force the copy over the existing mde to complete before the lauch? if it can not be copied, it should fail, not launch. delete first and then copy perhaps?
also, if the users mde is open, can this close it before the copy since two sessions result? if there is something else that could explain the older version being used, using this batch file, your thoughts will be welcome.
finally, is there a way to close the batch file when completed? now it stays in tray until Access is exited.
@Echo Off
CLS
Echo -=-=-=-=-=-= Tom Ball Software Updater =-=-=-=-=-
if not exist c:\refunds md c:\refunds
copy g:\"tax dept"\refunds\Real_Refunds.mde c:\refunds\Real_Refunds.mde /y
Echo Running Latest Version
rem pause
echo Launching Application ....
c:\refunds\Real_Refunds.mde