One of the items I pull from the registry for my app is the virus definitions value for Symantec. It's easy to get the value, but what I can't figure out is how to parse the string to get just the last part.
The value will look like this: c:\Progr~1\Com~1\Syman~1\VirDefs~1\20070503.081
What I want to do is parse the string and get just the last part and then format it into a date value.
I assign the value to a string, and then split the string using the "\" character. This creates an array of 6 items. When I try and pull the item, I list 20070503.081 five times.
Is there a better way to parse this string with ease?
The value will look like this: c:\Progr~1\Com~1\Syman~1\VirDefs~1\20070503.081
What I want to do is parse the string and get just the last part and then format it into a date value.
I assign the value to a string, and then split the string using the "\" character. This creates an array of 6 items. When I try and pull the item, I list 20070503.081 five times.
Is there a better way to parse this string with ease?