Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RUN Command problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Divers
Thread ID:
01530983
Message ID:
01531001
Vues:
66
>>>>>My DOS bat files don't seem to be executing correctly from VFP. I have a few command line programs (7zip, gpg.exe) that I'm trying to run either with a a run command or writing the commands to a bat file and calling that. I have the Cmd line set to cmd.exe instead of command.com in the foxrun properties and also tried %SystemRoot%\SYSTEM32\cmd.exe. The DOS cmd window pops up briefly but nothing is executing in the window itself.
>>>>>
>>>>>The bat files run fine from Windows Explorer.
>>>>
>>>>Can you run the file with ShellExecute?
>>>>
>>>>See also this Re: DOS program works differently within VFP Thread #1242242 Message #1242302
>>>
>>>I can, but there are other little utility prgs that are not under my control that make the batch files. Preferably, I'd like to just get it working properly. Thanks.
>>
>>I meant invoking the batch file with the ShellExecute or the code I showed in that message.
>
>Yes, I understand. Those utility prgs execute the batch too. I did add a parameter to have it use ShellExecute instead. Was just hoping to find some environmental setting that would solve the problem.

For lurkers, you could try calling CMD.EXE directly from the VFP RUN command, something like
RUN CMD.EXE /C MyBatch.cmd
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform