Folks,
I'm completely lost!
I need to get the list of all folders with subfolders. Nothing complex. I'm stuck with codepage!
The code page on running machine is 850. System command DIR returns ??? signs instead of correct symbols (russian characters) for file/folder names. They're visible and readable via windows explorer.
I tried following methods:
1. SHELL "dir ...."
2. SHELL "chcp 866 | dir ...."
3. FindFirstW (unicode version, tested almost every code posted here... )
an the result wasn't acceptable. I don't know where to dig to get the correct symbols..
I can read the file/folder names only if run XCOPY command in console. That's strange, as DIR cmd didn't show them.
Are there any other methods to get the correct filenames?
I'm completely lost!
I need to get the list of all folders with subfolders. Nothing complex. I'm stuck with codepage!
The code page on running machine is 850. System command DIR returns ??? signs instead of correct symbols (russian characters) for file/folder names. They're visible and readable via windows explorer.
I tried following methods:
1. SHELL "dir ...."
2. SHELL "chcp 866 | dir ...."
3. FindFirstW (unicode version, tested almost every code posted here... )
an the result wasn't acceptable. I don't know where to dig to get the correct symbols..
I can read the file/folder names only if run XCOPY command in console. That's strange, as DIR cmd didn't show them.
Are there any other methods to get the correct filenames?
Comment