I am reading the environmental variables specifically path
I am trying to see if a path I need is already there, if not I want to write it into the registry and reboot.
However the compare fails due to the fact that a colon : exists, the path I had was c:\informix\bin, i changed it to
/informix
informix
informix/bin
/informix/bin
and they all work, however put it to :/informix and it fails.
I am reading the path test from a file. Is there an easy way to do this other than breaking the path and reassembling.
Steve
I am trying to see if a path I need is already there, if not I want to write it into the registry and reboot.
However the compare fails due to the fact that a colon : exists, the path I had was c:\informix\bin, i changed it to
/informix
informix
informix/bin
/informix/bin
and they all work, however put it to :/informix and it fails.
I am reading the path test from a file. Is there an easy way to do this other than breaking the path and reassembling.
Steve