Hi NorwegianProgrammer,
First run Net.exe in the command line in your computer to know whether you can send the text to the target computer. If you can, then it is easy to use Process class to implement this. I use the above code snippet in my computer without problem.
Best regards,
Riquel