>In converting an older application from Foxbase to VFP 5.0 (running under WinNT 4.0 workstation), I have run into a problem with issuing a DOS COPY command (to concatenate multiple text files into one file)using the VFP RUN command. If I select a Command (DOS) prompt from NT and do the COPY command manually from a DOS-window, it works fine. It will not work from either the VFP 5.0 command window using RUN, or programatically. I get the "flashing" black background as the RUN command tries to parse the COPY command out to the DOS window, but something is being encountered that is preventing it from being executed. I have checked to make sure that all path names and permissions/rights have been set properly.
>
>Can anyone shed any light on this one??
>
>Thanks.
>
>Jere Wilson
My guess would be you're trying something like
RUN COPY File1.Ext+File2.Ext File3.Ext
To a certain extent, VFP parses the RUN command prior to dispatching it to be RUN. It may be using its own concatenation to simplify it to
RUN COPY File1.ExtFile2.Ext File3.Ext
A simple thing to try would be:
lcCommand = "COPY File1.Ext+File2.Ext File3.Ext"
RUN &lcCommand
If that doesn't work I would look into the API_APPRUN and ShellExecute() classes available here in the Files section.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up