![]() I don't know how ShellExecute is broken or how to get around it, and you can't wait for Microsoft to fix it. So ShellExecute isn't reliable enough and the START command isn't an option unless you want to tell your users what to type from a command prompt. I've confirmed this problem with Windows Media Player and Microsoft Word but it works fine with text files (they are opened in Notepad). I've seen this on Vista but it doesn't appear to be a problem with Vista because it doesn't affect all applications the same way. It's worked since Windows 95, but no more. ![]() ![]() The only job of ShellExecute is to interrogate the registry, figure out how to launch the file and then do it for you. If you know anything about Windows programming you might think that you could just use the ShellExecute function to launch the application since it's the function that you call to open a file in its default application. If you put that same command in a BAT file and try it, Word will start but your document won't be opened. If you type START c:\video.wmv from a command prompt or the Run dialog box it will work. Keep reading and you'll have an answer when the calls start. If you've shipped CDs using thiis technique then you're probably getting calls from customers, or you will be soon. You just put something like START c:\readme.doc or START c:\video.wmv in a BAT file and that was it. ![]() Launching Word documents or audio and video from a multimedia CD is a common task that, until the release of Vista, was relatively painless.
0 Comments
Leave a Reply. |