Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

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

Reply
 
Old 08-28-2009   #1 (permalink)
Larry__Weiss


 
 

"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
Old 08-29-2009   #2 (permalink)
Shay Levy [MVP]


 
 

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>
Quote:
Quote:

>> 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:
>>
Quote:

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

Thread Tools


Similar Threads
Thread Forum
Powershell Listing "Microsoft Windows Networking" of Domains and Workgroups ? PowerShell
Creating a search folder like "Files updated this week" Vista General
Creating a search folder like "Files updated this week" Vista file management
"disk cleanup" does its own thing with Task Manager. Vista performance & maintenance
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46