General information
Category:
Coding, syntax & commands
This is a 'standard' line I am using in VFP6, SP3 and Windows NT:
lccom="run ftp -s:"+sys(5)+curdir()+"cimftP.cmd"+;
" > "+sys(5)+curdir()+"ftplog.txt"
&lccom
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only