Is'nt this a problem of relative Vs global paths ? I give you an example I know: if you call GetCurrentDir within a code that you execute through Debug-->Start Without Debugging command then you'll have something different as when you go to the Debug directory of your executable and run it from there. Thus this may lead to different behaviours as when we have relative entries, such that things will work fine, in one case, and fail in the other. Ahmed. Tunisia.