Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide the DOS command window
Message
 
À
21/02/2003 14:47:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00756356
Message ID:
00756379
Vues:
16
Use shellexec instead.
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow

? ShellExecute(0,"open",;
"net",;
" send "+lcSendTo + " " + ALLTRIM(lcMessage),;
"",1)

>Hi,
>
>I am working on a small application which makes the NET SEND command more user friendly.
>
>I have the following:
>lcMessage = THIS.txtMessage.Value
>lcSendTo = "COMPUTER" (this holds the name of the destination)
>lcRunFile = "NET SEND" +" "+ lcSendTo + " " + ALLTRIM(lcMessage)
>
>When I issue the following line:
>RUN &lcRunFile
>
>the message is delivered OK except that the DOS command window flashes in full view to the user prior to the message being delivered.
>
>Is there any way to hide the DOS Window from the User during execution?
>
>Thank you,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform