Bat Script to Update GIS Folders

المشرف العام

Administrator
طاقم الإدارة
I am writing a script to update a destination directory of GIS Data, 2 file geodatabases. The script is suppose to check the modified dates and if they differ copy over the source data to the target data. For some reason the copy function does not work and I cannot find the issue.

for %%a in (C:\Source\Target) do set SD=%%~tafor %%a in (C:\Destination\Target) do set DD=%%~taset Y="No Updates Available... Starting QGIS"set N="Updating GIS Data..."pauseif SD==DD (echo %Y%) else (echo %N% xcopy /b/v/-y C:\Source\Target C:\Destination)pauseThis is a test script eventually it will be setup to check for updated gis data, update when required, then end on a start QGIS command.



أكثر...
 
أعلى