I necessarily need to change backslash to forward slash in windows environmental variable. Do you have any suggestions how can I get %programdata% path with forward slash after systemDrive?
Code:TCHAR path[_MAX_PATH]; _tcscpy(path, programdata); _tcscat(path, _T("\\myfile.txt"));




Reply With Quote
