Re-directing files from VirtualStore folder
I have a client application that usually stores .log and other files in the
C:\Program Files\(specific app folder).
With VISTA, these files are saved in hidden folders such as:
C:\Users\(USERNAME)\AppData\Local\VirtualStore\Program Files\(specific app
folder)
Is there a way to override this so that they are saved in the C:\Program
Files\(specific app folder)?
Where can I find information on this VirtualStore folder?
Regards,
Pete@prov
Re: Re-directing files from VirtualStore folder
Hi,
By design, the security model of Vista runs programs within the user
environment, not the system. This is why your files end up in the
VirtualStore, it's where the application is run. You may be able to override
this programatically, but it will involve your having the change permissions
on the Program Files folder. You'd have to check with someone who know the
language you are writing the application in to see if it's possible.
--
Best of Luck,
Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
"Pete@prov" <Peteprov@discussions.microsoft.com> wrote in message
news:84DCB097-A718-4BD3-A0AE-A31042DCB007@microsoft.com...
>I have a client application that usually stores .log and other files in the
> C:\Program Files\(specific app folder).
>
> With VISTA, these files are saved in hidden folders such as:
> C:\Users\(USERNAME)\AppData\Local\VirtualStore\Program Files\(specific app
> folder)
>
> Is there a way to override this so that they are saved in the C:\Program
> Files\(specific app folder)?
>
> Where can I find information on this VirtualStore folder?
>
> Regards,
>
> Pete@prov
Re: Re-directing files from VirtualStore folder
Pete
There are a few changes that need to be made for your application. In most
cases these can be made by including a simple manifest file. The place to
ask the howto questions is on the MSDN forums. These forums are staffed by
MS developers who perform this type of programming on a daily basis.
MSDN Forums: Software Development for Windows Vista
http://forums.microsoft.com/MSDN/def...ID=24&SiteID=1
Here are a few more links that will help.
Developing Applications that Run at Logon on Windows Vista:
http://msdn2.microsoft.com/en-us/library/bb325654.aspx
The Windows Vista Developer Story: Windows Vista Application Development
Requirements for User Account Control (UAC):
http://msdn2.microsoft.com/en-us/library/aa905330.aspx
Download details: Windows Vista Application Development Requirements for
User Account Control Compatibility:
http://www.microsoft.com/downloads/d...displaylang=en
Secure It:
http://msdn2.microsoft.com/en-us/win.../aa904985.aspx
User Account Control Overview:
http://technet.microsoft.com/en-us/w...06021.aspx#E2G
--
Ronnie Vernon
Microsoft MVP
Windows Shell/User
"Pete@prov" <Peteprov@discussions.microsoft.com> wrote in message
news:84DCB097-A718-4BD3-A0AE-A31042DCB007@microsoft.com...
>I have a client application that usually stores .log and other files in the
> C:\Program Files\(specific app folder).
>
> With VISTA, these files are saved in hidden folders such as:
> C:\Users\(USERNAME)\AppData\Local\VirtualStore\Program Files\(specific app
> folder)
>
> Is there a way to override this so that they are saved in the C:\Program
> Files\(specific app folder)?
>
> Where can I find information on this VirtualStore folder?
>
> Regards,
>
> Pete@prov