Site Map Pro - Automatically Updating the Sitemap
Knowledge Base Article: kb02
Whilst maintaining the pages that you are using Site Map Pro to map, you may find that you need to recreate the sitemap.html file when pages are updated, added
This can be done by running Site Map Pro again to recreate the sitemap.html file.
This is a one step process if you save a configuration file after indexing.
However the entire site map recreation process can be automated for solutions that require a remap at frequent or specified intervals.
For instance you may be using the software to create a site map for the contact information on your Intranet.
The site map would need to be refreshed on a daily basis to reflect ever changing contact information stored within the web pages.
Command Line Options
You can achieve this automation by using Command Line Options.
These are parameters that are passed to the application when it starts.
The syntax used to automate Site Map Pro is:
sitemapp.exe /o <myo configuration file> [/s <file name>]
Command Line Example
This command line:
sitemapp.exe /o c:\myweb\default.myo /s z:\intranet\publish\contact\sitemap.html
will open the saved configuration file
, map the website, and save the sitemap to
Command Line Reference
Automating the Script
|/o <myo configuration file>
||Open a previously saved Site Map Pro configuration file.
|/s <full filename>
||Save the generated sitemap.html file. The full filename must be provided, such as
C:\My Documents\Webroot\sitemap.html. If this option is not used then the file is saved to
The final step needed in our example is to automate running the command.
This can be done using your operating systems "Scheduled Tasks" option.
Note that it is required that the scheduled task is run under the user account that installed and registered the application on the system.