Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in issuing an OS command using RUN (or !)
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error in issuing an OS command using RUN (or !)
Miscellaneous
Thread ID:
00722684
Message ID:
00722684
Views:
44
I have a form that allows a user to create a file that eventually needs to be sent to an FTP site. I created a command button that would issue a command to FTP the created file. The button issues the following command:

run ftp -s:scriptfile

This seems to work sometimes, however, the command prompt window appears and disappears so quickly, that I can't see if there are any errors.

To alleviate this, I created an additional .bat file to contain the above line (without the run command of course) and an additional line for a 'pause' command, so I can see the window. I then issue the run command on the .bat file within the command button. This works to pause the window but it issues a 'Program too big to fit in memory' error. By the way, if I run the .bat file outside of FoxPro, it works properly.

Does anybody know how I can either:
A.) Use the first run command above and have the results of the command write to a log text file
B.) Eliminate the 'Memory' error somehow through configuration setups or whatever.

FYI, I'm running VFP 7.0 SP2 under Windows 2000 and Windows XP.

Thanks in advance for any help.
Next
Reply
Map
View

Click here to load this message in the networking platform