I use wordpress so its just a matter of installing a plugin.
Hello, can you elaborate a bit.
You are looking for a desktop application then you can go for GSite Crawler.It makes the most comprehensive sitemaps.
And if you are looking for a script, then most of the pre-made scripts comes with plugins or something to support the same. :D