0
0

How I can to set media path to directory with my .exe?

Full path to .EXE contains unicode non-ASCII symbols,
Windows Shell runs my exe with current directory different from .EXE,
I can’t change current directory (SetCurrentDirectoryW)* ?

*thought SetCurrentDirectoryW using is possible, but this demands of some work – determine OS version (SetCurrentDirectory[b:1eulwuts]A[/b:1eulwuts]/SetCurrentDirectory[b:1eulwuts]W[/b:1eulwuts] support), some string parsing, a nasty trick with changing work directory for a moment and reverting it back. Is there more preferable way?

  • You must to post comments
0
0

GetModuleFileNameA(GetModuleHandle(0), …) seems to work. It can convert [b:2hrq4br2]C:\Documents and Settings\かわいい\My Documents[/b:2hrq4br2] to
[b:2hrq4br2]c:\Documents and Settings\B023~1\My Documents[/b:2hrq4br2]

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.