Executing autorun in hard disk folder

I once saw someone executing the autorun of the cd (it was not an image, cd files copied into the folder) in a folder. The folder icon changed and on double clicking the folder the autorun started. So how do I do it?

I know I’m bumping my post but I really need to know. I was thinking of copying two CDs in one like that.

You should consider using one of the autorun launchers here: http://www.snapfiles.com/Freeware/system/fwcdrtools.html