Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don´t want users see DOS command screen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00635260
Message ID:
00635463
Vues:
16
I recently ran into this problem with an application I have that calls the rsh command. Here is how to control that renegade DOS window.

Add the following to the beginning of your command.

start /min command /C

For example: run /N start /min command /C copy file1 to file2

A couple of notes. Make sure there is not a start.pif file where the start.exe command resides. If there is, remove it. Also the "start" must come before the "command". The reason I say this is because I have found multiple command.com files on one system and in the path, some having pif files and others not, which caused me many headaches. However the start.exe file was only found to have existed once on each of the +250 machines(Win9x/NT/2K) I work with. If you are still having problems, make sure your FOXRUN.PIF is set to close on exit and run minimized. Not sure what would happen if you deleted it, I'll let you try it if you need to.

What I have found works best is if I write the command I want to run to a temp file with a .bat extension. And then execute the temp batch file with the "run" command. I create a corresponding .pif before hand and place it where the temp batch file will live. That way I am sure of how it will react, everytime, on every machine, since the temp file can be overwritten and executed many times without affecting the pif file.



>Hi. I'm coping a dbf file in a VFP program to a c:\filexxx.txt (using command run of VFP) and I don´t want the user see the DOS type screen. (What kind of screen it is: modeless or what?). How can I do just show something like an advance bar....o anything else?
>
>Thanks in advance.
>C.Burgos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform