I'm guessing you're poking the difference between a Relative path, and an Absolute path.
With mIRC, so long as the path you pass one of the tools ($readini(), /write, etc. etc.) doesn't have a space in it, it should work, even if the parent path has spaces in it.
If the path you pass to one of the tools has a space in it somewhere, then you should quote it (with $qt() or some other manual method). It also doesn't hurt to quote non-space paths.
So, here's a hyperthetical situation for you.
mIRC is installed in 'C:\My Appz\mIRC'. You have a few subdirectories under it, such as 'Logz' and 'Downloaded filez'.
No spaces in the path passed to the command.
/write Logz\file.txt string
This would fail.
/write Downloaded filez\file.txt string
There's a space in the path, so you need to quote it.
/write "Downloaded filez\file.txt" string
This would fail.
//write $mircdirLogz\file.txt string
Spaces in the full path.
//write $qt($mircdirLogz\file.txt) string