>>I am running VFP 6 and 7 on a windows 2000 machine. When I step thru the program or run the exe thru the window schedule the bat file does not run and does not give me and error. The bat file perform a ftp of files to a Tandem Machine. The bat file failure forces me to run it manual from the dos command line. It was suggested changing the foxrun.pif to point to cmd.exe. I have also thought about the ShellExecute api that will return and error message if the bat file does not successifull run. Two problem how to get the bat to run in code and how to trap for this error.
>>
>>msiftp.bat file content
>>ftp -s:msiftp.scr
>>ECHO MSIFTP PROCESS COMPLETED.
>>
>>
>>
>>msiftp.scr file content
>>open 999.99.99.99 9999
>>ftp
>>load
>>ascii
>>cd msi.crrdt
>>put msiresrv.txt
>>bye
>
>You may try to do FTP transfer from VFP using
FTP Class for VFP 5.0+ File #
9442Does this help?
Ftp -s:script.scr will not look thru any DOS path.
You may need to put the full path to msiftp.scr.
- Andy Rice
San Diego, CA