Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in issuing an OS command using RUN (or !)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00722684
Message ID:
00722744
Vues:
10
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform