Windows Vista Forums

"The String's the Thing" Windows PowerShell Tip of the Week
  1. #1


    Larry__Weiss Guest

    "The String's the Thing" Windows PowerShell Tip of the Week

    Looking at

    http://www.microsoft.com/technet/scr...pstip0921.mspx

    it seems to me that it has the descriptions of case sensitivity backwards in the
    "Comparing Two String Values" section.

    Can someone confirm that?



    - Larry



      My System SpecsSystem Spec

  2. #2


    Shay Levy [MVP] Guest

    Re: "The String's the Thing" Windows PowerShell Tip of the Week

    I didn't know about that group.
    Anyway, I've added the link to the group site in PowerShell Toolbar and Good
    luck with your presentation!


    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar



    L> PowerShell strings will be the topic of this month's PowerShell SIG
    L> of the North Texas PC User's Group, and I'll be a presenter, so I'm
    L> preparing a handout.
    L>
    L> http://sp.ntpcug.org/PowerShell/default.aspx
    L>
    L> - Larry
    L>
    L> Bob Landau wrote:
    L>

    >> Check this out
    >>
    >> [int][char]'A'
    >> [int][char]'a'
    >> Yes they have it backwards simple mistake.
    >>
    >> What I wish they had shown is for many common tasks the Powershell
    >> string capabilities work quite well and as a bonus you don't have to
    >> worry about upper or Lower case.
    >>
    >> i.e.
    >>
    >> 'foo bar'.StartsWith('f')
    >> 'foo bar' -like 'f*' # actually less typing and still works
    >> regardless of case
    >> add the native PS RegEx, Split, Join and you can go a long ways
    >> without needing to worry about case sensitivity that you must in
    >> every other language.
    >>
    >> "Larry__Weiss" wrote:
    >>

    >>> Looking at
    >>>
    >>> http://www.microsoft.com/technet/scr...s/pstips/sept0
    >>> 7/pstip0921.mspx
    >>>
    >>> it seems to me that it has the descriptions of case sensitivity
    >>> backwards in the "Comparing Two String Values" section.
    >>>
    >>> Can someone confirm that?
    >>>
    >>> - Larry
    >>>


      My System SpecsSystem Spec

"The String's the Thing" Windows PowerShell Tip of the Week problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a search folder like "Files updated this week" Mugunth Vista General 0 19 Nov 2007
Creating a search folder like "Files updated this week" Mugunth Vista file management 0 14 Nov 2007
"disk cleanup" does its own thing with Task Manager. Paul Vista performance & maintenance 0 18 Jun 2007
"string STR_ERR_OS was not found in string table" demian Vista installation & setup 1 29 Mar 2007
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Tony Vista General 1 16 Feb 2007