Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide the DOS command window
Message
 
To
21/02/2003 14:47:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756356
Message ID:
00756379
Views:
9
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
Map
View

Click here to load this message in the networking platform