Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shellexecute not working
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00397198
Message ID:
00397338
Views:
9
I don't know much about the shellexecute call but I think the workaround is a better solution anyway. One reason why ShellExecute may not have been working for you is that .txt files on your machine don't have any associated program. What about the case where a user has a machine that has .txt files associated with a program other than notepad? I'm sure it would be rare but it could happen. I know on my machine .txt files are associated with a text editor called ultraedit. So if you really wanted to pop up notepad the run command is the best way IMO.



>Works fine Rip. Still bugs me that ShellExecute won't work but this is a fine workaround. Thanks.
>
>>How about using the run command instead?
>>
>>run /N notepad "d:\VFPAPPS\APPDOCS\PROCS.TXT"
Rip Ryness
International Falls, MN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform