[archive] Windows Vista writing to root.

[Migrated content. Thread originally posted on 15 March 2007]

We loaded our application on Windows Vista and it is not able to create files in the root directory. Does anybody know if there is a setting in Windows that controls this? We have made sure that the user has full permissions in the root directory. We can create Folders in the root, just not files. Even if we try to create a shortcut in the root directory, windows says we do not have permission to do so.

This problem came up because our application creates a lock file in the root directory to prevent more than one instance of the application running on a single PC. I know that we could make a code change to use a sub directory for the lock file, but we were hoping we would be able to get around doing that.

Anybody have any ideas on changing Windows to allow for file creation in the root directory?