#眉標=PowerShell #副標=PowerShell = Shell + Script + .NET(3) #大標=四種PowerShell的命令 #作者=文/蔡學鏞 ==<灰>=========== PS > get-command dir CommandType Name Definition ----------- ---- ---------- Alias dir Get-ChildItem ================ ==<灰>=========== PS > write-output '-inputobject' -inputobject ================ ==<灰>=========== PS > cd 'c:\program files' PS > pwd Path ---- C:\Program Files ================ ==<灰>=========== PS > cd c:\program` files PS > pwd Path ---- C:\Program Files ================ ==<灰>=========== PS > cd "c:\program files" PS > pwd Path ---- C:\Program Files ================ ==<灰>=========== PS > $v = "files" PS > cd "c:\program $v" PS > pwd Path ---- C:\Program Files ================ ==<灰>=========== get-childitem –filter *.dll –path c:\windows -recurse ================ ==<灰>=========== PS > dir -rec -fil *.dll | where {$_.name -match "system.*dll"} ================ ==<灰>=========== PS > write-output -inputobject 123 123 ================ ==<灰>=========== PS > 123 | write-output 123 ================