Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition v3.11.0 Released!
#28
(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.
Reply


Messages In This Thread
QB64 Phoenix Edition v3.11.0 Released! - by a740g - 01-03-2024, 05:45 PM
RE: QB64 Phoenix Edition v3.11.0 Released! - by a740g - 01-08-2024, 12:37 AM



Users browsing this thread: 2 Guest(s)