Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Think this should have worked
#1
At least in windows it would be nice.  Since special paths exists in windows which are normally hidden as well
example:

_Title "path test"

'
' test for windows special paths
'
Open "%APPDATA%\HexChat\logs\rizon\test.txt" For Binary As #1
Line Input #1, d$
Close
Print d$

The test file only included a single line to let me know it happened.  But didn't get there, failed with path not found on open.  There are lot's of other important %paths% that windows has buried in the environment labels.

Suggest.  Can or should we make it work ?
Reply
#2
Change that open line to:

Code: (Select All)
OPEN _DIR$("appdata") + "HexChat\logs\rizon\test.txt" FOR BINARY AS #1

See  _DIR$ - QB64 Phoenix Edition Wiki for other standard OS paths.
Reply
#3
I knew _dir$ had some work done to it, but I never had time to investigate all the nuances yet.

Thanks
Reply




Users browsing this thread: 1 Guest(s)