This problem was just when I create a folder with the name "global"
the path was not the problem so $mircdir is D:\MKS3.0\ on my computer.
But well if you all say it works fine, it must be an error in my OS.
thx