Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running NET SEND
Message
 
À
13/03/2003 06:55:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00765303
Message ID:
00765325
Vues:
22
This message has been marked as the solution to the initial question of the thread.
Try this:
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow

lcuser=alltr(substr(sys(0), rat("#",sys(0))+1))
lccom="Process failed! Try again later."+chr(13)+chr(10)+"Hello, second line goes here"

? ShellExecute(0,"open","net"," send "+lcuser + " "+lccom,"",0)


>in an application i want to send a message to a user using net send
>
>i am doing this using run /n net send username message text
>
>the trouble with this is twofold.
>
>1. it flashes up a dos box
>2. i would like to be able to format the message text to have several lines each with different information on it, this data is pulled from various tables. i have no problem with the fox code for this. the problem is how do i format the net send command message text to have it over several lines instaead of one long line ?
>
>is this possible ?
>
>
>TIA
>
>Colin Burton
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform