I was wordering if anyone had used the Windows START command to launch files from within VFP apps. I have a custom application that will take CSV,XLS and other formatted files and load them to tables.
I wanted to allow the user preview ability before the file is loaded. As not all clients will have the same tools loaded I wanted to let Windows open the file in the assosiated application.
Normally from other apps I would use a shell command to run the following command line:
START pathname\filename.ext
The correct application would launch and open the file.
In VFP I issue the command RUN "START ..." and I see a Dos window flash but the file does not open and I get no messages.
I would rather not have to define the Automation calls within the module as it is a small low use tool. Any thoughts or simple code to do this?
Jon B
2000/XP/ME runtime workstations VFP 6.0 SP2
Jonthan A Black
I wanted to allow the user preview ability before the file is loaded. As not all clients will have the same tools loaded I wanted to let Windows open the file in the assosiated application.
Normally from other apps I would use a shell command to run the following command line:
START pathname\filename.ext
The correct application would launch and open the file.
In VFP I issue the command RUN "START ..." and I see a Dos window flash but the file does not open and I get no messages.
I would rather not have to define the Automation calls within the module as it is a small low use tool. Any thoughts or simple code to do this?
Jon B
2000/XP/ME runtime workstations VFP 6.0 SP2
Jonthan A Black