Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running NET SEND
Message
 
À
22/03/2003 08:14:41
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00765303
Message ID:
00769190
Vues:
19
Renoir,

First of all try to check whether net send command is supported: invoke DOS screen and from DOS prompt type "net HELP SEND" to see available options. Then follow the help and run nnet send to yourself from DOS prompt to see whether parameters you are using are correct.

>Yuri,
>
>I'm playing around with this, trying to tie it into some user notification options, and when I run it nothing happens. If I set nShowWindow to 1 I see a DOS box with nothing in it, if I set it to 0 nothing appears. This is a new functionality for me so I'm curious what I should be seeing.
>
>Renoir
>
>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform