How can I get a program to remember the last directory accessed and make it the default/initial directory when using API dialog? Easy way please ;)
Printable View
How can I get a program to remember the last directory accessed and make it the default/initial directory when using API dialog? Easy way please ;)
To preserve the 'last directory' within a program session store the path in a string variable.
To preserve it from one session to the next store the contents of the string variable to a file when the program ends and load it back from the file when the program starts.