Folders being deleted

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

When working on getting a database driven software to run on Vista, have
seen more than once that an entire folder, with data in the folder, being
deleted. Have searched for very specific files and then an advanced search
for the file with ZERO Results.

Does anyone have any thoughts regarding this type of issue happening?

Thanks
 
R

Rainald Taesler

news.microsoft.com shared these words of wisdom:
When working on getting a database driven software to run on Vista,
have seen more than once that an entire folder, with data in the
folder, being deleted. Have searched for very specific files and
then an advanced search for the file with ZERO Results.

Which kind of underlying database?

Rainald
 
D

dean-dean

Is your program writing its database to a subfolder of C:\Program Files? If
so:

Go to C:\Program Files, and click on Compatibility Files in the Toolbar of
Windows Explorer. This will take you to
C:\Users\YourName\AppData\Local\VirtualStore\Program Files (normally, a
hidden path). This is where Vista puts the files of programs that write
certain types of user files to the C:\Program Files subdirectories. When
you're in C:\Program Files\YourProgram (or possibly a subfolder of that
path), you should also see a button in the taskbar of Windows Explorer
called "Compatibility Files", which will take you directly to your program's
database files.

In your program's Options dialog, can you change the default location (path)
of the database to a path that is under your account name?

For example, it could be C:\Users\(Your Name)\Documents\ProgramName Data
(you may have to create the folder there first). Then Vista won't redirect
your files. After the initial program installation, it moves user files
being written to the C:\Program Files subdirectories, since the
Program Files folder is on a security level equal to the Windows folder
itself, making TrustedInstaller the owner.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top