Microsys
  

Schedule and Automate Sitemap Generator Tool with Command Line

Automate build and upload of website sitemap in A1 Sitemap Generator
Help: overview | previous | next

 To see all the options available, you will have to switch off easy mode 

 With options that use a dropdown list, any [+] or [-] button next to adds or removes items in the list itself 

Command Line Support in A1 Sitemap Generator

You can use a command line interface to automate all the major sitemap generator tools in the program.

This means that you can also use external applications and bat / batch / script files.

This enables you to run our sitemap generator software at regular intervals using e.g. Windows Task Scheduler.
  • Parameters:
    • ":%project-path%" : Where %project-path% should contain the path to the project. (Remember the colon before project path.)
    • "@override_rootpath=http://example.com@" : Overwrite website rootpath.
    • "-exit" : Exits when done.
    • "-hide" : Always invisible and exits when done.
    • "-scan" : Runs website scanner.
    • "-stop0000" : Stops scan after a number of seconds, e.g. -stop600 stops scan after 10 minutes.
    • "-save" : Saves project.
    • "@override_exportpathdir=c:\example\exports\@" : Overwrite general directory path used for e.g. CSV export data files.
    • "-exportsitemapcsv" : Exports all URLs data listed in "sitemap" tree view into a file called "sitemap.csv" located in project directory.
    • "-exportexternalcsv" : Exports all URLs data listed in "external" tree view into a file called "external.csv" located in project directory.
    • "@override_sitemapxmlpath=c:\example\sitemap.xml@" : Overwrite where the generated XML sitemap files are stored on computer.
    • "-buildxml" : Runs sitemap builder and creates XML sitemap.
    • "-buildnewsxml" : Runs sitemap builder and creates XML news sitemap.
    • "-buildmobilexml" : Runs sitemap builder and creates XML mobile sitemap.
    • "-buildvideoxml" : Runs sitemap builder and creates XML video sitemap.
    • "-buildimagexml" : Runs sitemap builder and creates XML image sitemap.
    • "-buildcodexml" : Runs sitemap builder and creates XML code sitemap.
    • "-buildrss" : Runs sitemap builder and creates RSS sitemap.
    • "-buildtext" : Runs sitemap builder and creates text sitemap.
    • "-buildtemplate" : Runs sitemap builder and creates template sitemap (usually HTML / XHTML).
    • "-buildaspnet" : Runs sitemap builder and creates XML ASP.Net sitemap for use by ASP.Net controls.
    • "-build" : Runs sitemap builder and creates a sitemap of the selected type in project settings.
    • "-buildall" : Runs sitemap builder for all kinds.
    • "-robotstxt" : Creates a "robots.txt" file.
    • "-upload" : Runs sitemap uploader and FTP uploads the last generated sitemap.
    • "-uploadall" : Runs sitemap uploader and FTP uploads all generated sitemaps.
    • "-ping" : Performs sitemap ping notification.

  • Examples for usage on Windows:
    • [ "c:\microsys\sitemap\Sitemap.exe" -exit -scan -build -upload -save ":c:\microsys\sitemap\projects\my-project.ini" ].
    • [ "Sitemap.exe" -exit -scan -build -upload -save ":my-project.ini" ] (Good for testing when placing all files in the same directory.)
    • [ "Sitemap.exe" -scan -build @override_rootpath=http://example.com@ ]

  • Examples for usage on Mac OS:
    • [ open A1SitemapGenerator.app --args -scan -build @override_rootpath=http://example.com@ ].

  • Tips:
    • To prevent a parameter value that contains spaces (e.g. if you are passing a directory path) from being broken up, enclose it inside a couple of "".


Automate Sitemap Generator with Windows Command Line and Batch Files

  • Create a batch file, e.g. "batch-file.bat", using any standard text editor
  • Example of what to write underlined: [ "c:\microsys\sitemap\Sitemap.exe" -exit -scan -build -upload -save ":c:\microsys\sitemap\projects\my-project.ini" ].
  • Save your batch file. You can now call it yourself or from other programs and scripts.
  • Download this ZIP file containing a demo project including ".bat" file to get you started.


Schedule and automate Sitemap Generator with Windows Task Scheduler


schedule automate sitemap generator

  • Open Control Panel | Scheduled Tasks | Add Scheduled Task. Follow the guide.
  • Open the generated sitemap generator time scheduled item to edit details, e.g. command line parameters.
This help page is maintained by

As one of the lead developers, his hands have touched most of the code in the software from Microsys.

If you email any questions, chances are that he will be the one answering them.
A1 Sitemap GeneratorAbout A1 Sitemap Generator

Build all kinds of sitemaps including text, visual HTML / CSS, RSS, XML, image, video, news and mobile for all your websites no matter the platform they use.
     
share   LinkedIn   Twitter   Facebook   Pinterest   Google+   YouTube  
 © Copyright 1997-2016 Microsys
 Usage of this website constitutes an accept of our legal, privacy and cookies information.