Lap Question in Powershell ToolMaking Book

Welcome Forums General PowerShell Q&A Lap Question in Powershell ToolMaking Book

This topic contains 4 replies, has 2 voices, and was last updated by

 
Participant
2 years, 4 months ago.

  • Author
    Posts
  • #49936

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    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

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    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

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    >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.

The topic ‘Lap Question in Powershell ToolMaking Book’ is closed to new replies.