Script to load AutoMap with documents from specified directory location

Specify the folder to retrieve documents from with <DOCUMENTS_PATH>.

A subdirectory called "docs" will be created that contains all the files (including subdirectories) located in <DOCUMENTS_PATH>. All documents with the specified file extension will be included in the AutoMap publication. In this case filenames with a ".fm" extension are published.

rmdir /S /Q docs
mkdir docs
xcopy /E "<DOCUMENTS_PATH>" docs
dir docs\*.fm /B /S > "${FileListPath}"

Script steps explained:

  1. The above script removes any previously existing "docs" subdirectory inside the directory that contains the AutoMap job file and then creates a new "docs" directory that is empty.

  2. All files located in the directory <DOCUMENTS_PATH> are copied to the "docs" subdirectory, with recursion to retrieve any subdirectories.

  3. Finally the "dir" command is used to create a list of all the files located in the "docs" subdirectory that have the ".fm" extension.

HelpCenter/Tips/VersionControl/AutoMapDocumentCheckoutScripts/FileSystem (last edited 2013-01-29 18:20:55 by TonyMcDow)