2013年6月9日
摘要: function Test-m { param( [Parameter(Mandatory=$true)] $name ) "Please entered $name."}Test-m 阅读全文
posted @ 2013-06-09 15:32 momingliu11 阅读(256) 评论(0) 推荐(0) 编辑
摘要: IE:$ie = New-Object -ComObject InternetExplorer.ApplicationExcel:$excel=new-object -comobject excel.applicationWord:$wordApp = New-Object -COM Word.Application$file = (dir Sample.doc).FullName$doc = $wordApp.Documents.Open($file)$text = $doc.Content.Text$text$wordApp.ExitPerfcounter:$counter = New-O 阅读全文
posted @ 2013-06-09 15:12 momingliu11 阅读(201) 评论(0) 推荐(0) 编辑