Results 1 to 4 of 4

Thread: [RESOLVED] Phantom AppData Directory

  1. #1

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Resolved [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.
    Last edited by Code Doc; Mar 25th, 2009 at 10:14 AM.
    Doctor Ed

  2. #2
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    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.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  3. #3

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Phantom AppData Directory

    Thanks, AnHn. That's the solution.

    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.
    Last edited by Code Doc; Mar 24th, 2009 at 06:18 PM.
    Doctor Ed

  4. #4
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: [RESOLVED] Phantom AppData Directory

    Haha! I can't beleive that a Doc can forget that !!!
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width