资源描述:
《[Windows.PowerShell.Pocket.Reference(2nd,2012.12)].Lee.Holmes.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、SECONDEDITIONWindowsPowerShellPocketReferenceLeeHolmesBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoWindowsPowerShellPocketReference,SecondEditionbyLeeHolmesCopyright©2013LeeHolmes.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebasto
2、pol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromo-tionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editor:RachelRoumeliotisCopyedit
3、or:RachelMonaghanProductionEditor:ChristopherHearseProofreader:MaryEllenSmithIndexer:MargaretTroutmanCoverDesigner:RandyComerInteriorDesigner:DavidFutatoIllustrator:RebeccaDemarestDecember2012:SecondEdition.RevisionHistoryfortheSecondEdition:2012-12-07FirstreleaseSeehttp://oreilly.com/catalog/errat
4、a.csp?isbn=9781449320966forreleasede-tails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.WindowsPowerShellPocketReference,theimageofaboxturtle,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsell
5、erstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerro
6、rsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-32096-6[M]1354853082ContentsPrefacevAGuidedTourofWindowsPowerShellixChapter1:PowerShellLanguageandEnvironment1CommandsandExpressions1Comments2HelpComments3Variables5Booleans6Strings7Numbers9ArraysandLists12H
7、ashtables(AssociativeArrays)15XML16SimpleOperators17ComparisonOperators26ConditionalStatements30LoopingStatements34Workingwiththe.NETFramework42WritingScripts,ReusingFunctionality50ManagingErrors66iiiFormat