[RESOLVED] Phantom AppData Directory
In my latest App, I use the following statement to set the path for files that I will be writing information to:
Code:
MyAppPath = Environ("APPDATA") & "\" & "MyAppName" & "\"
This works fine and on my XP development machine, MyAppPath is then defined as "C:\Documents and Settings\Owner\Application Data\MyAppName\", exactly as I expected. The application runs flawlessly, and both the installer and the uninstaller work perfectly.
I then installed the software on a bare bones Windows XP machine that I keep around for testing. The software again installs and works perfectly in all modes and it uninstalls correctly. However, I am completely unable to locate the App Data path anywhere using Windows Explorer. I've tried searches on the entrire hard drive to no avail. The folder, Documents and Settings, is there, but Application Data is nowhere to be found, and I cannot find any of the files that I use in the program.
Any idea where the phantom AppData directory is on the bare bones machine and/or why Explorer cannot find the files? I'm stumped.:eek:
Re: Phantom AppData Directory
Not sure you already knew this or not:
Application Data is a hidden folder.
In Windows Explorer, use Tools > Folder Options... > View then select "Show hidden files and folders".
After that, you will see Application Data folder appears with dim icon.
Re: Phantom AppData Directory
Thanks, AnHn. That's the solution. :thumb:
I just plain forgot that (1) this folder was hidden and (2) I neglected to change this buried option on my bare bones machine. I suppose that Microsoft set this procedure up to protect users from using Explorer to ruin their own installed Apps by deleting crucial files.
Re: [RESOLVED] Phantom AppData Directory
Haha! I can't beleive that a Doc can forget that !!!