>>I am presently building a wizard that will have to process an ASCII file.
>>
>>This file should be made off an unknown number of smaller ASCII files.
>>
>>So I thought it was a good opportunity to give API_AppRun a ride.
>>
>>lcCommandLine = "COPY.EXE *.* CODA.TXT"
>>loDosProc = CREATEOBJECT( "API_AppRun",lcCommandLine, , "HID" )
>>loDosProc.LaunchAppAndWait()
>>
>>etc...
>>
>>I can make Ed Rauh examples work (the ones with NotePad), but not this one. What am I doing wrong?
>>
>
>COPY is an internal command - there is no COPY.EXE to run. Try it using XCOPY instead.
>
>An even better choice would be to use the Windows Scripting Host's Scipting.FileSystemObject (assuming you're willing to make sure it's installed on the target system), or the Win32 API CopyFile() command (I posted an example of using it to copy a file to the PRN device in the past day or so.)
>
>>José
Thanks Ed,
I ruled out the Windows Scripting Host for now, because this app should be installed in various locations by the final users themselves and I can't be sure they have the scripting host on their machines. I will try the xCopy and also look at the Win32 API CopyFile() command you posted.
Thanks.
José