One more thing, don't hard code the path to explorer because its different on some OS versions, ShellExecute() will find it without you specifying the path to it. You want to say ShellExecute("explorer /e:C:\"); if I remember correctly, the /e: switch opens the explorer to a specific directory and can highlight a specific file for you if that is what you specify after the switch. I don't know how to open the explorer on the CDROM specifically, its most often D:\ but you never know for sure... you see what I mean?
I sincerely apologize for talking windows api in this forum, but I'm assuming original poster wants his CD to be cross platform. Good luck.
|