Hi,
I am searching a function to know the current working directory of a bundled exe,
and also a function to force a new value for current working directory.
Thanks for help
Dany
Hi,
I am searching a function to know the current working directory of a bundled exe,
and also a function to force a new value for current working directory.
Thanks for help
Dany
Hi Dany,
I usually prefer to compose the absolute paths, using APP_ScriptPath to retrieve the directory where the script lives and then work with that further.
For example, if your EXE is "c:\myprograms\mycool.exe", then APP_ScriptPath will contain "c:\myprograms\"
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Hi Petr,
My long Unix / C background leads me to use a syscall/function to set a current workig directory.
There,all manipulation of files needs only to know the relative file name instead of rebuilding complete file path.
Yes, I know I'm lazy.
Dany
Hi Dany,
I see & understand
Then these will be at your service:
- DIR_GetCurrent
- DIR_Change
Please note you need to do uses "file" to be able to use these.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks