Possible Duplicate:
remove unwanted contents from list of listings
How can I hide a listing from the listoflistings, similar to using \section*{Title} to hide a section from the table of contents?
I want to do this in order to use a listing as an example in the preface of my thesis. As this isn't really an actual listing, I don't want it to show up in my list of listings because it doesn't really concern the content.

title=Title of this listinginstead ofcaption=Title of this listing. Please, provide an example of what you're doing, if this is unclear or doesn't work. – egreg Sep 17 '12 at 8:01