Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jun : XP Shell Execute Problem
| Subject: | XP Shell Execute Problem |
| Posted by: | "Rob" (robert_jagels..@corvel.com) |
| Date: | Fri, 23 Jun 2006 10:08:50 |
I'm using ShellExecute to open a text file. I'm wanting to use whatever
text editor is associated with the file extension. The text files are
database files ending in '.TAB', '.PRC', 'TRG', etc.
When I open one of the files from Windows Explorer, its opens the correct
editor and loads in the file. When I attempt to do this programmatically,
nothing happens and ShellExecute fails. This seems to work fine with
Windows 2000 and other OS's but not XP.
Does anyone know how to locate the default text editor for a particular file
extension so I can execute it programmatically with the appropriate file?
Thanks in advance,
Rob