I am coding in a machine that has documents folder at D: drive, so whenever I have to get a file in that folder I use absolute path starting with D: - however, when the same program is ran at another PC where documents folder sits at C: drive, I get "Device unavailable". So, how can I properly determine the absolute path to the documents folder, that will allow the program to find it, no matter where it is running (by "no matter where" I mean any PC, any drive and any folder inside said PC)?
I suppose QB64 doesn't like use of system variable %documents%. I tried changing "D:documents" and the IDE complained. Is the only way to obtain the correct path in any computer via consulting Windows Registry?