This got me too...
As Wishi said. The directory that your XBE is in gets mounted ad D:\ when your app starts no matter where that is. So you need to use D:\ to refer to anything in or under that directory.... It's wierd but true.
So even if your program is runnning from e:\IDontCare you refer to this directory in code as D:\
Morden.