Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement