Error: Can't create/write to file...

I was getting error messages about: Can't create/write to file ...
Solution:
It was solved this by use forward slash in the path like:
tmpdir=T:/temp

Regular backslashes work just fine in the other MySQL path definitions/directives. But it looks like in the world of MySQL, Apache...etc... it is usually better to use forwardslashes.