I'm getting a command line string from the registry, but it's coming in a variety of different formats:
Sometimes the full path and name is enclosed in double quotes, but not always.
example - "C:\Program Files\My Apps\Foo.exe"
Sometimes there are parameters (outside the quotes - if they exist) but not always.
example - "C:\Program Files\My Apps\Foo.exe" -onbootup
The parameters (if any) may have a leading char like - or \ but not always.
example - C:\Program Files\My Apps\Foo.exe startup
I need a way to break these strings down to extract the information as separate items, something like ParamStr does. although the string supplied is a widestring not an ansichar.