Lap Question in Powershell ToolMaking Book

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of Christopher Michael Christopher Michael 1 month, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #49936

    The Chapter 6 lab in this book has three parts, A,B,C. Each part tells you to brainstorm how you would make a tool.

    In Chapter 7 it gives you an assignment and tells you to actually create a tool. When I look at the lab answers I see things like "try" and "switch". I cannot find where these were taught in the book. Do I have a different Edition? Were the chapters reordered?

    #49939
    Profile photo of Don Jones
    Don Jones
    Keymaster

    The Try/Catch construct is covered in the chapter on error handling.

    The Switch construct was covered in "Learn Windows PowerShell in a Month of Lunches," I believe; it's more like pre-requisite information. But, you're also expected to use the help files in PowerShell – "help about_switch," for example – to refresh your memory, if needed.

    #49941
    Profile photo of Don Jones
    Don Jones
    Keymaster

    I don't have ready access to the lab answer files at the moment, but they should be sequenced per chapter. The chapters haven't been reordered, and there's only been one edition of the book. The earlier chapters' answers shouldn't include concepts from later chapters – at least, nobody's pointed that out to this point, if I did make a mistake there.

    #49943

    Could be my mistake or its been too long since I read the Powershell in a month of lunches I may have forgot the switch construct.

    #49945

    >The Try/Catch construct is covered in the chapter on error handling

    I just checked and that comes after the chapter I am at now :/ I am sure I can piece it together. This is a steeper learning curve than the first book but I will make my way through this one as well.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.