Fog Creek Software
Fog Creek Software

CityDesk 2.0-Documentation
Automatic Publishing

You may wish to set up CityDesk so that it publishes your site automatically, either as a part of a more complex batch script, or as a regularly scheduled job.

For example, you could create a batch file using a scripting language which copies a CityDesk file, publishes it to a server, and emails you a status report. You can then schedule this batch file to run automatically every night using the Windows Scheduled Tasks feature.

This is accomplished by running CityDesk with command line arguments:

citydesk.exe site /publish location
or
citydesk.exe site /publish location /results results

where

site is the full path to the .CTY file

location is the name of one of thepublish locations you have set up. Capitalization and spelling must be exactly the same.

results is the full pathname of a status file which will be created during publishing. The file will contain any error messages or warnings which occur during publishing.

If any argument contains spaces, enclose it in double quotes. In fact, even if an argument doesn't contain spaces, enclose it in double quotes just to be sure.

Examples:

citydesk.exe "c:\mysite.cty" /publish "FTP to the server"

citydesk.exe "c:\mysite.cty" /publish "French Test Server" /results "c:\publish.log"

CityDesk Documentation -  Home


©Copyright 2001-2003 Fog Creek Software, Inc. All Rights Reserved.