I am trying to read in from a file where a folder path is specified using environment variable shortcuts, like the following:
source dest
filename.ext %programfiles(x86)%\FolderName\
I get the following error when trying to use Path.Combine() to concatenate this with a filename:
"Could not find a part of the path %programfiles(x86)%\FolderName\filename.ext"
Do I have to parse environment variables (like %programfiles(x86)% and %appdata%) out and manually replace them, or is there a another way to have these resolved? Seems like a common use case for copying files, e.g. patching.