Last saved file location
I'm currently working on a VB6 Project. What I would like to do is when someone completes a backup, I want to save the path and return to the same dir when they go back to the backup section. Can someone give me an idea how to do this?
Thanks
George
[267 byte] By [
GeorgeR] at [2007-11-11 7:45:25]

# 1 Re: Last saved file location
Hi George.
The best/easiest way to do this (assuming it's always on the same PC) is to store/read a registry key.
savesetting "my program","my settings","default path", then the variable you're using
and the inverse
myPath = getsetting("my program","my settings","default path")
You could also write the path to a text file/inf file which sits in the program directory. Once the backup is complete, append to the file the last time & date along with the path.
# 3 Re: Last saved file location
If you were to ask your network admin. to unlock the registry on the users PC, he'd/she'd probably tell you to re-write the app. to use an INI/INF file anyway lol
If you need any help, just ask :)