on Nov 23rd, 2013, 5:46pm, CirothUngol wrote:| I would most certainly use it, and it seems the easiest and most direct way to allow users to control the placement of internal files. Also, providing the %TEMP% path as an internal variable (like DefaultDir$) would make user control even easier and more convenient. |
|
OK, I'll add the option. You'll need to put the source file in %TEMP% first, but then you'd want to anyway for testing in the IDE.
I don't think I'll provide a predefined variable which points to %TEMP% for the simple reason that it would prevent you testing and debugging the program in LB. It's not difficult to do using CALLDLL:
Code: TempPath$ = space$(_MAX_PATH)
calldll #kernel32, "GetTempPathA", _
_MAX_PATH as long, TempPath$ as ptr, _
ret as long
TempPath$ = trim$(TempPath$)
Edit: Anyway if you don't mind it being LBB-specific you can always use this hack:
Code:
Richard.