davin

Just a little thinking and interest!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年8月15日

摘要: 通过使用WScript.Shell 组件可以打开任何的应用程序 eg using (dynamic shell = AutomationFactory.CreateObject("WScript.Shell")) { shell.Run(@"C:\windows\notepad.exe"); //you can open anything shell.SendKeys(txtTextToSend.Text); } 阅读全文
posted @ 2010-08-15 11:36 davin 阅读(2290) 评论(2) 推荐(0)