Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Windows 7 "Compatibility Files"

Windows 7 "Compatibility Files"

Scheduled Pinned Locked Moved The Lounge
comquestion
22 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JoeSox
    wrote on last edited by
    #1

    I've skipped over Vista so please excuse me if this 'feature' nugget is found there also but even if I "show all hidden files" darn text files and folders my application creates doesn't allow access. What gives?:confused:?

    Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

    J J T E 4 Replies Last reply
    0
    • J JoeSox

      I've skipped over Vista so please excuse me if this 'feature' nugget is found there also but even if I "show all hidden files" darn text files and folders my application creates doesn't allow access. What gives?:confused:?

      Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

      J Offline
      J Offline
      Jon Rista
      wrote on last edited by
      #2

      Don't allow access in what scenario/way/to whom?

      J 1 Reply Last reply
      0
      • J Jon Rista

        Don't allow access in what scenario/way/to whom?

        J Offline
        J Offline
        JoeSox
        wrote on last edited by
        #3

        The app creates a backup folder and then opens the new folder with windows explorer when backup is complete. But this backup folder is some-reason "Compatibility Files" and it throws an error that the folder can not be found. And it *is* in an administrator account, so that has nothing to do with it.

        Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

        Richard Andrew x64R 1 Reply Last reply
        0
        • J JoeSox

          The app creates a backup folder and then opens the new folder with windows explorer when backup is complete. But this backup folder is some-reason "Compatibility Files" and it throws an error that the folder can not be found. And it *is* in an administrator account, so that has nothing to do with it.

          Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          You ARE aware that this is only a beta version of Windows 7, right?

          J 1 Reply Last reply
          0
          • Richard Andrew x64R Richard Andrew x64

            You ARE aware that this is only a beta version of Windows 7, right?

            J Offline
            J Offline
            JoeSox
            wrote on last edited by
            #5

            Richard Andrew x64 wrote:

            You ARE aware that this is only a beta version of Windows 7, right?

            Of course, I was just wondering if anyone else noticed that. I hope that 'feature' goes away.

            Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

            J 1 Reply Last reply
            0
            • J JoeSox

              Richard Andrew x64 wrote:

              You ARE aware that this is only a beta version of Windows 7, right?

              Of course, I was just wondering if anyone else noticed that. I hope that 'feature' goes away.

              Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

              J Offline
              J Offline
              Jon Rista
              wrote on last edited by
              #6

              What exactly do you mean by "Compatibility Files"? Also...not sure if your aware of how the new security stuff works in Vista/Win7. Even if you are logged in under an administrative account, windows will still run apps as if you have a limited account. If you really want to run something with elevated privs, you gotta do it manually. You can do this by right-clicking the .exe and choosing "Run as administrator", or you can go into the programs properties and set it to always run with administrator privs.

              J 1 Reply Last reply
              0
              • J Jon Rista

                What exactly do you mean by "Compatibility Files"? Also...not sure if your aware of how the new security stuff works in Vista/Win7. Even if you are logged in under an administrative account, windows will still run apps as if you have a limited account. If you really want to run something with elevated privs, you gotta do it manually. You can do this by right-clicking the .exe and choosing "Run as administrator", or you can go into the programs properties and set it to always run with administrator privs.

                J Offline
                J Offline
                JoeSox
                wrote on last edited by
                #7

                Jon Rista wrote:

                and choosing "Run as administrator"

                It's a freaking folder. a folder for crying out loud.

                Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                P J C 3 Replies Last reply
                0
                • J JoeSox

                  Jon Rista wrote:

                  and choosing "Run as administrator"

                  It's a freaking folder. a folder for crying out loud.

                  Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  Real computer folk say "directory"; "folder" is for the mom&pop.

                  J 1 Reply Last reply
                  0
                  • P PIEBALDconsult

                    Real computer folk say "directory"; "folder" is for the mom&pop.

                    J Offline
                    J Offline
                    JoeSox
                    wrote on last edited by
                    #9

                    PIEBALDconsult wrote:

                    Real computer folk say "directory"; "folder" is for the mom&pop.

                    I didn't want to confuse readers with System.IO.Directory so I used the word "folder" because in Windows Explorer it is folder. In DOS, or in the programming sense, it would be directory. In any event, it makes no sense, I can view the sub directory/folder and .txt files the app creates when I press the "Compatibility Files" button on windows explorer and all the other folders and files disappear, I don't like it. Other than that, Win7 is nice.

                    Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                    1 Reply Last reply
                    0
                    • J JoeSox

                      Jon Rista wrote:

                      and choosing "Run as administrator"

                      It's a freaking folder. a folder for crying out loud.

                      Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                      J Offline
                      J Offline
                      Jon Rista
                      wrote on last edited by
                      #10

                      Yeah, I get that you have a folder. You completely missed my point. Your original question stated that your application couldn't read/write files INSIDE your folder. My post before was just to let you know, since your not very familiar with Vista/Win7, that even if your logged on as admin, programs don't "run" as admin by default. And BTW, I still have no idea what you mean by a "Compatibility Files" button...are you talking about something in Win7? I've been using it for almost 2 months now, and I havn't seen a Compatibility Files button anywhere. If you want a useful answer, you need to be a hell of clearer with your questions.

                      J 1 Reply Last reply
                      0
                      • J Jon Rista

                        Yeah, I get that you have a folder. You completely missed my point. Your original question stated that your application couldn't read/write files INSIDE your folder. My post before was just to let you know, since your not very familiar with Vista/Win7, that even if your logged on as admin, programs don't "run" as admin by default. And BTW, I still have no idea what you mean by a "Compatibility Files" button...are you talking about something in Win7? I've been using it for almost 2 months now, and I havn't seen a Compatibility Files button anywhere. If you want a useful answer, you need to be a hell of clearer with your questions.

                        J Offline
                        J Offline
                        JoeSox
                        wrote on last edited by
                        #11

                        No you missed my point. I said nothing about read/write. Where did I mention that. I even clarified to you "The app creates a backup folder and then opens the new folder with windows explorer when backup is complete. But this backup folder is some-reason "Compatibility Files" and it throws an error that the folder can not be found. [even though it was successfully created]"

                        Jon Rista wrote:

                        My post before was just to let you know, since your not very familiar with Vista/Win7, that even if your logged on as admin, programs don't "run" as admin by default.

                        I think everyone knows this which is why I mentioned it so no one would bring it up. I don't remember seeing this "Compatibility Files" button on windows explorer in Vista.

                        Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                        J 1 Reply Last reply
                        0
                        • J JoeSox

                          No you missed my point. I said nothing about read/write. Where did I mention that. I even clarified to you "The app creates a backup folder and then opens the new folder with windows explorer when backup is complete. But this backup folder is some-reason "Compatibility Files" and it throws an error that the folder can not be found. [even though it was successfully created]"

                          Jon Rista wrote:

                          My post before was just to let you know, since your not very familiar with Vista/Win7, that even if your logged on as admin, programs don't "run" as admin by default.

                          I think everyone knows this which is why I mentioned it so no one would bring it up. I don't remember seeing this "Compatibility Files" button on windows explorer in Vista.

                          Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                          J Offline
                          J Offline
                          Jon Rista
                          wrote on last edited by
                          #12

                          JoeSox wrote:

                          text files and folders my application creates doesn't allow access.

                          I interperated that to mean that your application couldn't access text files created in your folders. I figurd my assumption could have been wrong, which is why I asked for more clarification of why/what/how in my first response. So the question still remains...WHAT/WHO can't access the files and folders? Your app? Other users? Your currently logged in user? Other apps?

                          JoeSox wrote:

                          I think everyone knows this which is why I mentioned it so no one would bring it up.

                          You mentioned you were an administrator...under Vista/Win7, if you want to make sure your readers fully understand the context your app is running under...say it was "Run as administrator". That completely removes any chance for misinterpretation. You can be an administrator and run an app and the app runs under a context with limited privs, which could cause the kind of problem your having.

                          JoeSox wrote:

                          I don't remember seeing this "Compatibility Files" button on windows explorer in Vista.

                          I havn't seen a "Compatibility Files" button in any version of windows...including Win7. Could you maybe take a screenshot or something of this button? Communication has obviously broken down...I don't think either of us understands what the other is saying at this point.

                          J 1 Reply Last reply
                          0
                          • J Jon Rista

                            JoeSox wrote:

                            text files and folders my application creates doesn't allow access.

                            I interperated that to mean that your application couldn't access text files created in your folders. I figurd my assumption could have been wrong, which is why I asked for more clarification of why/what/how in my first response. So the question still remains...WHAT/WHO can't access the files and folders? Your app? Other users? Your currently logged in user? Other apps?

                            JoeSox wrote:

                            I think everyone knows this which is why I mentioned it so no one would bring it up.

                            You mentioned you were an administrator...under Vista/Win7, if you want to make sure your readers fully understand the context your app is running under...say it was "Run as administrator". That completely removes any chance for misinterpretation. You can be an administrator and run an app and the app runs under a context with limited privs, which could cause the kind of problem your having.

                            JoeSox wrote:

                            I don't remember seeing this "Compatibility Files" button on windows explorer in Vista.

                            I havn't seen a "Compatibility Files" button in any version of windows...including Win7. Could you maybe take a screenshot or something of this button? Communication has obviously broken down...I don't think either of us understands what the other is saying at this point.

                            J Offline
                            J Offline
                            JoeSox
                            wrote on last edited by
                            #13

                            Jon Rista wrote:

                            WHAT/WHO can't access the files and folders? Your app? Other users? Your currently logged in user? Other apps?

                            System.Diagnostics.Process.Start(Common.backupRootFolder); it was created by DirectoryInfo dinfo = Directory.CreateDirectory(Common.backupRootFolder); it works in WinXP and Vista

                            Jon Rista wrote:

                            I havn't seen a "Compatibility Files" button in any version of windows...including Win7. Could you maybe take a screenshot or something of this button?

                            http://farm4.static.flickr.com/3528/3202437651_d786f2b1fa_o.jpg[^]

                            Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                            J 1 Reply Last reply
                            0
                            • J JoeSox

                              Jon Rista wrote:

                              WHAT/WHO can't access the files and folders? Your app? Other users? Your currently logged in user? Other apps?

                              System.Diagnostics.Process.Start(Common.backupRootFolder); it was created by DirectoryInfo dinfo = Directory.CreateDirectory(Common.backupRootFolder); it works in WinXP and Vista

                              Jon Rista wrote:

                              I havn't seen a "Compatibility Files" button in any version of windows...including Win7. Could you maybe take a screenshot or something of this button?

                              http://farm4.static.flickr.com/3528/3202437651_d786f2b1fa_o.jpg[^]

                              Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                              J Offline
                              J Offline
                              Jon Rista
                              wrote on last edited by
                              #14

                              Ok, I might know what is going on. Windows Vista and Windows 7 both changed how user-data created by applications is handled. They REALLY don't want programs writing to C:\Program Files\, and prefer that all applications write to C:\ProgramData\ or C:\Users\[user]\AppData\[app-specific-folder]. I have not encountered it for a while, but Vista and I assume Win7, since its based on vista, have a file virtualization feature that keeps user data isolated from program/system data in protected locations (C:\Windows, C:\Program Files, C:\System Volume Information, C:\Boot). I am guessing that your programs data is being virtualized, and that Compatibility Files is appearing so you can see the virtualized data. Usually virtualization like this happens when the account executing a program doesn't have the right permissions to write, but does have permissions to execute, in a given location (which still makes me wonder if you have tried running the application with "Run as administrator"...which should have solved the problem). Only recommendation at this point is to write that data to some subdirectory in C:\ProgramData (for application global data), or C:\Users\[user]\AppData (for user-specific data). Under Users, you can store data in Local, LocalLow, or Roaming. The .NET framework has direct support for storing user-specific data, called Isolated Storage. It will automatically handle creation of a unique folder under C:\Users\[user]\AppData for you, and allows you to choose the profile (local/roaming). I am not exactly sure how to store data under C:\ProgramData...I've never tried before, as I always opt for Isolated Storage. Its entirely possible that its automatic...and that ProgramData is where files are automatically virtualized when you write to C:\Program Files. EDIT: This might help: http://support.microsoft.com/kb/927387

                              J 1 Reply Last reply
                              0
                              • J Jon Rista

                                Ok, I might know what is going on. Windows Vista and Windows 7 both changed how user-data created by applications is handled. They REALLY don't want programs writing to C:\Program Files\, and prefer that all applications write to C:\ProgramData\ or C:\Users\[user]\AppData\[app-specific-folder]. I have not encountered it for a while, but Vista and I assume Win7, since its based on vista, have a file virtualization feature that keeps user data isolated from program/system data in protected locations (C:\Windows, C:\Program Files, C:\System Volume Information, C:\Boot). I am guessing that your programs data is being virtualized, and that Compatibility Files is appearing so you can see the virtualized data. Usually virtualization like this happens when the account executing a program doesn't have the right permissions to write, but does have permissions to execute, in a given location (which still makes me wonder if you have tried running the application with "Run as administrator"...which should have solved the problem). Only recommendation at this point is to write that data to some subdirectory in C:\ProgramData (for application global data), or C:\Users\[user]\AppData (for user-specific data). Under Users, you can store data in Local, LocalLow, or Roaming. The .NET framework has direct support for storing user-specific data, called Isolated Storage. It will automatically handle creation of a unique folder under C:\Users\[user]\AppData for you, and allows you to choose the profile (local/roaming). I am not exactly sure how to store data under C:\ProgramData...I've never tried before, as I always opt for Isolated Storage. Its entirely possible that its automatic...and that ProgramData is where files are automatically virtualized when you write to C:\Program Files. EDIT: This might help: http://support.microsoft.com/kb/927387

                                J Offline
                                J Offline
                                JoeSox
                                wrote on last edited by
                                #15

                                Jon Rista wrote:

                                (which still makes me wonder if you have tried running the application with "Run as administrator"...which should have solved the problem).

                                That works. Thanks. It doesn't make my job any easier however.

                                Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                                J 1 Reply Last reply
                                0
                                • J JoeSox

                                  Jon Rista wrote:

                                  (which still makes me wonder if you have tried running the application with "Run as administrator"...which should have solved the problem).

                                  That works. Thanks. It doesn't make my job any easier however.

                                  Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                                  J Offline
                                  J Offline
                                  Jon Rista
                                  wrote on last edited by
                                  #16

                                  Yeah, the general cost of increased security is a correlated increase in hassle (for someone, somewhere) too. ;)

                                  1 Reply Last reply
                                  0
                                  • J JoeSox

                                    I've skipped over Vista so please excuse me if this 'feature' nugget is found there also but even if I "show all hidden files" darn text files and folders my application creates doesn't allow access. What gives?:confused:?

                                    Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                                    J Offline
                                    J Offline
                                    James Brown
                                    wrote on last edited by
                                    #17

                                    Has Vista virtualised your file-writes? because they are going to locations that are normally only accessible by an administrator. You can embed an application manifest in your executable that specifies at what level your app should run at (asInvoker/asAministrator etc). When Vista sees the manifest it will disable virtualisation and your file-writes will fail (rather than being virtualised) if you try to write somewhere without having permission.


                                    http://www.catch22.net

                                    modified on Saturday, January 17, 2009 7:54 AM

                                    1 Reply Last reply
                                    0
                                    • J JoeSox

                                      Jon Rista wrote:

                                      and choosing "Run as administrator"

                                      It's a freaking folder. a folder for crying out loud.

                                      Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                                      C Offline
                                      C Offline
                                      Christian Graus
                                      wrote on last edited by
                                      #18

                                      I can't imagine why you got a 1. Sounds like I will be using XP for a long, long time.

                                      Christian Graus Driven to the arms of OSX by Vista.

                                      1 Reply Last reply
                                      0
                                      • J JoeSox

                                        I've skipped over Vista so please excuse me if this 'feature' nugget is found there also but even if I "show all hidden files" darn text files and folders my application creates doesn't allow access. What gives?:confused:?

                                        Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                                        T Offline
                                        T Offline
                                        Tomz_KV
                                        wrote on last edited by
                                        #19

                                        wait for formal release.

                                        TOMZ_KV

                                        1 Reply Last reply
                                        0
                                        • J JoeSox

                                          I've skipped over Vista so please excuse me if this 'feature' nugget is found there also but even if I "show all hidden files" darn text files and folders my application creates doesn't allow access. What gives?:confused:?

                                          Later, JoeSox CPMCv1.0 - Last.fm - MyFriendfeed - Joesox.com

                                          E Offline
                                          E Offline
                                          El Corazon
                                          wrote on last edited by
                                          #20

                                          first.... WHERE is the folder in question... is it a subdirectory of the installation directory (program files...) or user directory? or elsewhere?

                                          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                                          J 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups