sp;= new-object -com “SAPI.spvoice“
PS〉 $spVoice.Speak(“Windows Vista and PowerShell“)
6. 使用Windows PowerShell访问诸如Windows Media Player 11等的应用程序
PS〉 $band = “The Posies“
PS〉 $player = New-object -com wmplayer.ocx
PS〉 $playlist = $player.mediacollection.getbyauthor($band)
PS〉 $player.openPlayer($pl页码:[1] [2] [3] [4] [5] [6] 第4页、共6页 |