Как командой послать файлы

Discussion in 'С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby' started by ^NSA^, 20 Oct 2012.

  1. ^NSA^

    ^NSA^ Elder - Старейшина

    Joined:
    3 Jul 2012
    Messages:
    64
    Likes Received:
    29
    Reputations:
    32
    Как командой послать файлы.

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using SKYPE4COMLib;
    namespace Bots
    {
        public class Bot
        {
            public Skype skype;
            public   Bot()
            {
                Skype skype = new Skype();
                if (!skype.Client.IsRunning)
                {
                    // start minimized with no splash screen
                    skype.Client.Start(true, true);
                }
    
               
             //   Console.WriteLine("Missed message count: {0}", skype.MissedMessages.Count);
                // wait for the client to be connected and ready
                skype.Attach(20, true);
                skype.MessageStatus += new _ISkypeEvents_MessageStatusEventHandler(skype_MessageStatus);
               
              
            Command com = new Command();
             com.Command = "ALTER CHAT #nerdy_gnu/$208b7111b7624920 ADDMEMBERS Teamer ";
                skype.SendCommand(com);
              
                while (true)
                {
                    Chat ch = skype.get_Chat("#nerdy_gnu/$208b7111b7624920");
                    ch.SendMessage(" ");
                    
                }
                
            }
                 
            private void skype_MessageStatus(ChatMessage msg, TChatMessageStatus status)
            {
                     
               Console.WriteLine(msg.ChatName);
              
            }
        class Program
        {
            
    
            static void Main(string[] args)
            {
    
                Bot bot = new Bot();
               
                 string username = Console.ReadLine();
              
            
            }
            
        }
    
    }
    
    
    :confused: