- Local time
- Today, 07:54
- Joined
- Feb 19, 2002
- Messages
- 45,488
There are lots of much more complicated scripts out there but this one has worked for me for years. It doesn't raise an error in the MD if the directory already exists, nor does it raise an error in the del if the database doesn't exist because in both cases, I would ignore the error anyway. So my position is, don't raise an error you don't want to handle
Notice that the standard and Citrix .bat files are identical in how they work. They just reference the local directory differently.
Standard .bat file
Citrix .bat file
Notice that the standard and Citrix .bat files are identical in how they work. They just reference the local directory differently.
Standard .bat file
Code:
md c:\DwgLog
del c:\DwgLog\DrawingLog.accdb
copy "\\BSCCTIMBERLINE1\Timberline Office\AccessApps\Data\CommonFE\DrawingLog.accdb" c:\DwgLog
c:\DwgLog\DrawingLog.accdb
Code:
md %USERPROFILE%\DwgLog
del %USERPROFILE%\DwgLog\DrawingLog.accdb
copy "\\BSCCTIMBERLINE1\Timberline Office\AccessApps\Data\CommonFE\DrawingLog.accdb" %USERPROFILE%\DwgLog
%USERPROFILE%\DwgLog\DrawingLog.accdb