= Document Directory Path = == Description == This project includes a VBScript which can be used to determine the document directory path of the first document in an ePublisher project. <> == Original Request == {{{ I'm using Automap 2008.3. I want the Post Build script to copy a metadata file from the source (framemaker source) directory to the deployment directory. I don't see a variable for specifying the source directory. I hate to hard code the path into each script. Anyone know of a variable that will specify the source directory? }}} == Script == Attached as [[attachment:document_path.vbs]]. Execute with: {{{ cscript document_path.vbs ${ProjectFile} }}} Example: {{{ C:\Documents and Settings\allums>cscript "C:\Documents and Settings\allums\Desktop\document_path.vbs" "C:\Documents and Settings\allums\Desktop\info\info.wep" Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation. All rights reserved. C:\Documents and Settings\allums\Desktop\info\..\..\..\..\Program Files\Adobe\FrameMaker7.2\samples\overview\book }}} This is not quite a complete solution as DOS makes it difficult (impossible?) to store the project result in a DOS environment variable. However, the code can be used as a stating point to perform whatever operation that is required.