General information
Category:
Coding, syntax & commands
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,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only