Email this Page Log Support Call Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

Automatically Distributing Files After Generation

This is an example that shows how you can automate the publishing of your output, then automatically distribute updated files to a folder location or FTP location. This example batch file:

  • Automates the generation of a book in Author-it.
  • Copies the Word files to a different location.
  • FTPs the HTML files to a remote server.

While this has been seen to work in-house network setups vary wildly and the FTP especially may not be appropriate for all situations.

Example listing for PUBLISH.BAT batch file.

REM Auto-generate in Author-it (this example is a SQL server database) 
"C:\Program Files\Author-it V4\AITPublish.exe" /sql"MyAuthor-itLibrary|MyServer" /pub"945|5;"
 
REM Copy the resulting Word document to the server.
copy "C:\Program Files\Author-it V4\Publishing\Word\Advanced Tutorial\*.*" " Tutorial"
 
REM Copy the resulting HTML files to the website.
ftp -n -s:send.txt

Note: The Auto-generate command line was created within Author-it.

Example listing for SEND.TXT script file.

Note: all CAPITALIZED words in this file will need to be replaced with the correct data (server name, user, password, input directory, output directory, input files and output files)

prompt
open SERVER_NAME
user USERNAME
PASSWORD
binary
lcd "INPUT_DIRECTORY"
cd "OUTPUT_DIRECTORY" 
mput *
bye

 

Top of Page Email this Page Log Support Call Send Feedback Print