Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Application Cannot Save Files in Vista

Reply
 
Old 06-15-2007   #1 (permalink)
Larry Stinson


 
 

Application Cannot Save Files in Vista

I have an application that needs to save some of its data in a file. The
application is installed into the c:\Program Files\Commission Calculator
folder. The application wants to store its data in that same folder.

With all previous versions of Windows this worked fine, but with Vista it
causes a "Can't Save" error (80030103). The file extension is .adtg, but I
suspect it's the folder and/or its related privileges that is preventing the
save operation.

Should I be using a different folder to store these, or does the user need
to change his settings in Vista?

Any information will be greatly appreciated.



My System SpecsSystem Spec
Old 06-15-2007   #2 (permalink)
Dave Johnson [MSFT]


 
 

Re: Application Cannot Save Files in Vista

Programs should not save data to the Program Files folder, and in Vista,
Windows specifically prohibits this behavior. If you can specify a different
save path for your program, you should do so, or else check with the
developer to see if they have an update of the program that is better
behaved and doesn't save data there. I hope that helps!

--
Dave Johnson
Windows User Assistance team
Microsoft Corporation

My System SpecsSystem Spec
Old 06-15-2007   #3 (permalink)
Ronnie Vernon MVP


 
 

Re: Application Cannot Save Files in Vista

Larry

As Dave said, the %systemroot%\Program Files is a restricted area in Vista.
If you have the option in that application to change the path for the
storage of this information, creat a folder somewhere in the
C:\Users\Username folder. A good location is the
C:\Users\Username\AppData\Local\VirtualStore\Program Files, folder. This is
the location where non-Vista compliant applications should be saving their
configuration and other writeable files.

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Larry Stinson" <llstinson@yahoo.com> wrote in message
news:75Cci.1348$vi5.735@newssvr17.news.prodigy.net...
>I have an application that needs to save some of its data in a file. The
>application is installed into the c:\Program Files\Commission Calculator
>folder. The application wants to store its data in that same folder.
>
> With all previous versions of Windows this worked fine, but with Vista it
> causes a "Can't Save" error (80030103). The file extension is .adtg, but I
> suspect it's the folder and/or its related privileges that is preventing
> the save operation.
>
> Should I be using a different folder to store these, or does the user need
> to change his settings in Vista?
>
> Any information will be greatly appreciated.
>


My System SpecsSystem Spec
Old 06-15-2007   #4 (permalink)
Jimmy Brush


 
 

Re: Application Cannot Save Files in Vista

Ronnie Vernon MVP wrote:
> Larry
>
> As Dave said, the %systemroot%\Program Files is a restricted area in
> Vista. If you have the option in that application to change the path for
> the storage of this information, creat a folder somewhere in the
> C:\Users\Username folder. A good location is the
> C:\Users\Username\AppData\Local\VirtualStore\Program Files, folder. This
> is the location where non-Vista compliant applications should be saving
> their configuration and other writeable files.
>


I would warn against saving data directly to the Virtual Store.

If you are a developer for the application, then I would suggest using
the appropriate system folder for what you are storing, as determined by
the SHGetFolderPath and related API's.

http://msdn2.microsoft.com/en-us/library/aa969404.aspx


--
-JB
Microsoft MVP - Windows Shell/User
Windows Vista Support FAQ - http://www.jimmah.com/vista/
My System SpecsSystem Spec
Old 06-16-2007   #5 (permalink)
Larry Stinson


 
 

Re: Application Cannot Save Files in Vista

Thanks, Dave. Can you direct me to any guidelines indicating which folders
developers can use in Vista that are not restricted?

Larry
"Dave Johnson [MSFT]" <davejoh@online.microsoft.com> wrote in message
news:OzLhya5rHHA.3276@TK2MSFTNGP04.phx.gbl...
> Programs should not save data to the Program Files folder, and in Vista,
> Windows specifically prohibits this behavior. If you can specify a
> different save path for your program, you should do so, or else check with
> the developer to see if they have an update of the program that is better
> behaved and doesn't save data there. I hope that helps!
>
> --
> Dave Johnson
> Windows User Assistance team
> Microsoft Corporation



My System SpecsSystem Spec
Old 06-16-2007   #6 (permalink)
Larry Stinson


 
 

Re: Application Cannot Save Files in Vista

Thanks, Ronnie!! That's a huge help.

"Ronnie Vernon MVP" <rv@invalid.org> wrote in message
news:BF058542-6405-487D-9503-23413FD84037@microsoft.com...
> Larry
>
> As Dave said, the %systemroot%\Program Files is a restricted area in
> Vista. If you have the option in that application to change the path for
> the storage of this information, creat a folder somewhere in the
> C:\Users\Username folder. A good location is the
> C:\Users\Username\AppData\Local\VirtualStore\Program Files, folder. This
> is the location where non-Vista compliant applications should be saving
> their configuration and other writeable files.
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "Larry Stinson" <llstinson@yahoo.com> wrote in message
> news:75Cci.1348$vi5.735@newssvr17.news.prodigy.net...
>>I have an application that needs to save some of its data in a file. The
>>application is installed into the c:\Program Files\Commission Calculator
>>folder. The application wants to store its data in that same folder.
>>
>> With all previous versions of Windows this worked fine, but with Vista it
>> causes a "Can't Save" error (80030103). The file extension is .adtg, but
>> I suspect it's the folder and/or its related privileges that is
>> preventing the save operation.
>>
>> Should I be using a different folder to store these, or does the user
>> need to change his settings in Vista?
>>
>> Any information will be greatly appreciated.
>>

>



My System SpecsSystem Spec
Old 06-16-2007   #7 (permalink)
Larry Stinson


 
 

Re: Application Cannot Save Files in Vista

Thanks, Jimmy!! I'll read this article in detail and change my application
accordingly.

"Jimmy Brush" <jb@mvps.org> wrote in message
news:OWh$FS6rHHA.4932@TK2MSFTNGP02.phx.gbl...
> Ronnie Vernon MVP wrote:
>> Larry
>>
>> As Dave said, the %systemroot%\Program Files is a restricted area in
>> Vista. If you have the option in that application to change the path for
>> the storage of this information, creat a folder somewhere in the
>> C:\Users\Username folder. A good location is the
>> C:\Users\Username\AppData\Local\VirtualStore\Program Files, folder. This
>> is the location where non-Vista compliant applications should be saving
>> their configuration and other writeable files.
>>

>
> I would warn against saving data directly to the Virtual Store.
>
> If you are a developer for the application, then I would suggest using the
> appropriate system folder for what you are storing, as determined by the
> SHGetFolderPath and related API's.
>
> http://msdn2.microsoft.com/en-us/library/aa969404.aspx
>
>
> --
> -JB
> Microsoft MVP - Windows Shell/User
> Windows Vista Support FAQ - http://www.jimmah.com/vista/



My System SpecsSystem Spec
Old 08-24-2007   #8 (permalink)
Chris R


 
 

RE: Application Cannot Save Files in Vista

I have my app data saved in the C:\DATA\ and I also do not have privlages to
save the files. these values are not in the restricted folder?
My System SpecsSystem Spec
Old 08-24-2007   #9 (permalink)
Jimmy Brush


 
 

Re: Application Cannot Save Files in Vista

Chris R wrote:
> I have my app data saved in the C:\DATA\ and I also do not have privlages to
> save the files. these values are not in the restricted folder?


Hello,

In Vista, programs generally cannot save data outside of the user
profile folder (c:\users\username\)

--
-JB
Microsoft MVP - Windows Shell/User
Windows Vista Support FAQ - http://www.jimmah.com/vista/
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Cannot save pdf files Vista x64 Network & Sharing
Vista Won't Save any Files!! Software
Save files on Drive in XP - cant see them in VISTA Vista General
Does Vista backup save all (non-system) files? Vista General
Application won't save last state Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46