B
Blake McNeill
How do you retrieve a file path which was stored in the Registry as a string
without ending up with a string which has all the slashes escaped which make
it useless for file IO? I can see the file path in the registry using
RegEdit and it is exactly what I want, but when I use:
string filePath = Registry.GetValue(keyPath, keyName, null).ToString();
filePath is something like C:\\Data\\MyFile.txt when I need it to be
C:\Data\MyFile.txt, what am I missing?
Thanks
Blake
without ending up with a string which has all the slashes escaped which make
it useless for file IO? I can see the file path in the registry using
RegEdit and it is exactly what I want, but when I use:
string filePath = Registry.GetValue(keyPath, keyName, null).ToString();
filePath is something like C:\\Data\\MyFile.txt when I need it to be
C:\Data\MyFile.txt, what am I missing?
Thanks
Blake