摘要:
function Test-m { param( [Parameter(Mandatory=$true)] $name ) "Please entered $name."}Test-m 阅读全文
摘要:
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 阅读全文