2006-11-14

用C#设计在局域网发送短信的程序

来源: CSDN 作者:佚名 评论 0 条
 
   sr = new StreamReader(fs,UnicodeEncoding.GetEncoding (GB2312));
'9wl Ndn
   rsId = FileSend.Name .ToString ();
k#dizXK`S
   rsId = rsId.Replace (.sms,);
FSb0T$[4
   rsId = rsId.Trim ();
AHq? .Xe
   rsPhoneNum = sr.ReadLine ();
G0=&rv_zK
   rsPhoneNum = rsPhoneNum.Trim ();
YfAk#pRF
   if (rsPhoneNum.Length >11)
'ZHxS(
    rsPhoneNum = rsPhoneNum.Substring (0,10);
@0;;5a
    rsSmsText = sr.ReadToEnd();
N'9v SR%
    rsSmsText = rsSmsText.Trim ();
vVpAWI>nd
    if (rsSmsText.Length >50)
o]e!G(E
     rsSmsText.Substring (0,49);
7YToJ}
     fs.Close ();
DL:!%_
     sr.Close ();
] `N:~*
8i7zVU:S9
     //发送短信息
@R=,'Wk
     SmsX1.SendUnicodeSMSMessage (rsPhoneNum.ToString (),rsSmsText.ToString (),6,false,);
pC_j6;nn.
L-*hchs
     //备份并删除文件
K y9g)y
     FileSend.CopyTo (F:\\Sms\\Data\\HadBeenSend\\ FileSend.Name ,true);
GR)c7Y'*8
     FileSend.Delete ();
a6a}4EpT
   }
tbky Fm
   catch(System.Exception E)
u;w `F
   {
ft5}N*C(e6
共10页: 上一页 [1] [2] [3] [4] [5] [6] 7 [8] [9] [10] 下一页
(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:韩国商业网站设计分析  
下一篇:认识.NET的集合
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号