Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Batch File Failure in VFP6&7
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00789043
Message ID:
00790215
Views:
23
>>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 #9442

Does 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
Previous
Reply
Map
View

Click here to load this message in the networking platform