01-08-2024, 12:37 AM
(01-07-2024, 11:09 PM)zaadstra Wrote: Nice!
How to program:
PRINT "Parent directory full path: "; _FULLPATH$("../") src:
if you want your.bas be working for Win and for Linux/Mac? I mean, the slash ...
QB64-PE will auto-correct slashed based on the platform.
For example, the above code will return the directory name with a forward slash on macOS and Linux. And it will return the directory name with a backslash on Windows.
See example 2 in _FILES$ - QB64 Phoenix Edition Wiki for a way to manually handle path separators based on the OS.