Works perfect, thanks. I`m not so familar with char.
And another mistake i do was GetCurrentDirectory give only one Backslash return in the path and SetCurrentDirectory needs two. I should use more the printf function to figure someting like this out.