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

Windows 7

Scheduled Pinned Locked Moved The Lounge
csharphtmlcomperformance
61 Posts 29 Posters 2 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.
  • D Dan Neely

    Dave Parker wrote:

    I like to have my entire "Documents and Settings" (now "Users") folder

    Can you still change the path by slipstreaming it in the install disk?

    Dave Parker wrote:

    I want to avoid unnecessary writes to all the app data / local settings / temp folders etc.

    I think you're probably worrying over nothing. After ~16 months of storing everything except media files on my primary desktop, my Indilynx Barefoot SSD was at 96% lifetime left.

    3x12=36 2x12=24 1x12=12 0x12=18

    D Offline
    D Offline
    Dave Parker
    wrote on last edited by
    #39

    You probably can change the path by slipstreaming but at the time I thought that would be more work, but I might consider it next time. I probably do worry to much about writes, I think that writes are pretty slow on my X25M SSD though. I have a game called City Life which used to be installed to Program Files on my SSD and I noticed it taking a huge amount of time starting up compared to when it was on a HD and it turned out it was creating a several gigabyte temp file in its own folder (not the temp folder for some reason) each time it ran. I ended up playing about with junctions keeping parts of the game on SSD and parts on HDD to get the best performance.

    D 1 Reply Last reply
    0
    • realJSOPR realJSOP

      Hey! Where have you been - it's been a while since you posted...

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      L Offline
      L Offline
      leckey 0
      wrote on last edited by
      #40

      I'd love to say that I've been living in the Amazon jungle for the last 6 months studying nature and science, but it's more related to xenophobia and general anxiety. :^)

      Soon...very soon...http://CraptasticNation.blogspot.com/[^]

      1 Reply Last reply
      0
      • D Dave Parker

        You probably can change the path by slipstreaming but at the time I thought that would be more work, but I might consider it next time. I probably do worry to much about writes, I think that writes are pretty slow on my X25M SSD though. I have a game called City Life which used to be installed to Program Files on my SSD and I noticed it taking a huge amount of time starting up compared to when it was on a HD and it turned out it was creating a several gigabyte temp file in its own folder (not the temp folder for some reason) each time it ran. I ended up playing about with junctions keeping parts of the game on SSD and parts on HDD to get the best performance.

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #41

        sequential write speed was the one liability of the Intel controller. When it first came out it smoked everyone on random writes, but they had to hurt sequential performance to do that. It was a reasonable tradeoff since huge sequential writes are relatively rare, while random IO suckage is common. Current generation SSD controllers smoke intel on both fronts.

        3x12=36 2x12=24 1x12=12 0x12=18

        1 Reply Last reply
        0
        • C Christian Graus

          The one thing I hate is that I have one login on this machine, but the file system still shows 'my pictures', 'my downloads', etc under my documents ( twice, one folder and one shortcut ) and tells me I have no permission to open them when I try. Again, there is one login on this machine, I am the admin, the sole user, etc. Why show me stuff that I can't look at, but let me see it if I navigate to it slightly differently ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          R Offline
          R Offline
          Rod Kemp
          wrote on last edited by
          #42

          I'm going to bet that you also see a "Documents and Settings" folder under the C: drive. So why would MS put this folder in place when Win7 doesn't use it? Could it be because MS have to content with lazy programmers that don't follow guidelines and try to do things their own way forcing MS to put rubbish like this into their system. Anyway just turn off "Show hidden files, folders and drives" and those folders you can't access will disappear.

          People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs

          1 Reply Last reply
          0
          • B Bassam Abdul Baki

            Kudos to Microsoft on Windows 7. I finally got the chance to play with it and I'm really impressed so far. The look, the feel, the speed all feels right. Now I really need a new computer at home.

            Web - BM - RSS - Math - LinkedIn

            R Offline
            R Offline
            R Erasmus
            wrote on last edited by
            #43

            Indeed very impressive Microsoft... Fast as lightning and its Microsoft too. You don't always get those two in one sentance.

            "Program testing can be used to show the presence of bugs, but never to show their absence." << please vote!! >>

            1 Reply Last reply
            0
            • B Bassam Abdul Baki

              I'll have to pay attention to that. I thought the "My "  was no longer there. However, don't these belong to the currently logged in user? In which case, why shouldn't you see and be able to access them?

              Web - BM - RSS - Math - LinkedIn

              A Offline
              A Offline
              Anna Jayne Metcalfe
              wrote on last edited by
              #44

              They aren't - the actual folders are named "Documents", "Pictures" etc. I think the "My " prefixed ones are hard links/junction points for backward compatibility. Why you can't click on them is beyond me - I suspect the OS UI support for junction points is somewhat incomplete (ever tried creating one without writing code...?) and they've taken the easy way out of preventing interactive users from accessing them directly.

              Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

              A 1 Reply Last reply
              0
              • C Christian Graus

                There is no reason I can see, it's a sign they still have not fixed the new security code to work properly

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                A Offline
                A Offline
                Alan M Burns
                wrote on last edited by
                #45

                These are special directory hardlinks primarily used for programs hard coded to write to specific, depreciated folders (Documents and settings, Application Data, etc, instead of using %appdata% or %userprofile%). You cannot access these directly, but you can, however, delete them, if you know none of your programs do not access these specific folders in this specific way. Microsoft makes its money on the back of companies who have many bespoke pieces of software and would require compatibility with new versions of windows to keep their revenue stream high - I can't say I've never found a commercial piece of software which writes to these folders specifically (yet...), but I can't say the same for in-house software coded for a specific operating system (IE, XP or 2000). As for the folders in %appdata% with "My" in front of their name, this is just trickery - the directory may be named "My *", but the actual path omits the "My". You can check by clicking in the breadcrumb (address) bar until it turns into a path. Oh, and, if you're wondering - if you DO delete these hardlinks, and then install a piece of software that would try to write to these directories, nothing particularly bad will happen - they will simply recreate the directories in a standard way (ie, real folders). Using hardlinks like this just keeps all the relevant data in one spot. Hope this clears up any confusion.

                M F 2 Replies Last reply
                0
                • A Anna Jayne Metcalfe

                  They aren't - the actual folders are named "Documents", "Pictures" etc. I think the "My " prefixed ones are hard links/junction points for backward compatibility. Why you can't click on them is beyond me - I suspect the OS UI support for junction points is somewhat incomplete (ever tried creating one without writing code...?) and they've taken the easy way out of preventing interactive users from accessing them directly.

                  Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

                  A Offline
                  A Offline
                  Alan M Burns
                  wrote on last edited by
                  #46

                  They are created and owned by the SYSTEM process. If you intentionally mess with the file ownership and permissions, they work properly as standard directory hard links. They are designed to be written to by installers, Windows directs the files to their proper locations on-the-fly (as they did with early 64-bit software still trying to write data to 32-bit secific folders and registry keys), rather than accessed via Explorer by standard users.

                  1 Reply Last reply
                  0
                  • D Dave Parker

                    I've had various issues with "my documents" and related folders. I like to have my entire "Documents and Settings" (now "Users") folder on a separate disk to my boot disk as my boot disk is an SSD and I want to avoid unnecessary writes to all the app data / local settings / temp folders etc. It was a hassle doing it in XP but even more of one in 7 due to the zillions of junction points that are already there, the UAC and the weird way windows search works (finding 2 copies of a file that only exists once because it's on H: but there is a junction on C: that point to it, etc). In an ideal world windows would just provide a simple option to relocate the entire user data tree, and also wouldn't write tons of crap in the windows folder (winsxs, prefetch, the temp folder within windows, etc). If I do a backup of what's changed, just within my user folder, simply between shutting down and starting my computer back up, even though I've not ran anything, over a gigabyte has changed. Anyway I'm going off on a mad tangent of rants so I'll stop here, overall in most respects I agree that 7 is an improvement over XP. I skipped vista completely.

                    A Offline
                    A Offline
                    Alan M Burns
                    wrote on last edited by
                    #47

                    Until Microsoft implements application level virtualization for older programs, there is no way WinSxS will disappear. It's the lesser of two evils, without this no software would've worked properly in Vista and now Windows 7 without being rewritten to use the new Vista versions of files. Can you imagine how much worse Vista would've been seen if Microsoft basically told every one of it's 100k+ strong programming community to just tough up and recode every single application specifically for Vista? Not even going to bother thinking about in-house software here.

                    E 1 Reply Last reply
                    0
                    • B Bassam Abdul Baki

                      Kudos to Microsoft on Windows 7. I finally got the chance to play with it and I'm really impressed so far. The look, the feel, the speed all feels right. Now I really need a new computer at home.

                      Web - BM - RSS - Math - LinkedIn

                      V Offline
                      V Offline
                      Vachaun22
                      wrote on last edited by
                      #48

                      I think there may be some general misunderstanding about some of the inner workings of Windows 7 here. No one, and I mean no one, actually runs with Administrator privileges at all times in Windows 7. All users including Administrators run with limited privileges, and are only elevated to admin privs when necessary to perform a certain action. This is part of the UAC that is now built into Windows Vista/7. So even though your account is listed as Administrator, you are still running with limited user privileges until elevation is required. The second issue that I see is that since Windows Vista, the "My *" locations are no longer "real" folders. While there is a [root]:\Users\Documents folder, these are now libraries. You can add *ANY* location to a library and it will show up. Say you have MP3's in C:\Music and D:\Other Music, you can add both of these locations to "My Music" and you will see them there, you simply right click on the library and one of the tabs allows you to add and remove locations to the library. Also, since I think Windows XP there is never *ONLY* your account on a machine. There is ALWAYS another Administrator account on the machine that is hidden from view. This account is typically viewable when booting into safe mode, and you can also see this account when you open compmgmt.msc and view the Local Users and Groups. And if you can't access a directory, then there is some form of folder permissions in place that is preventing you from accessing it. Hopefully, some of this might clear up some issues with Windows 7.

                      1 Reply Last reply
                      0
                      • A Alan M Burns

                        These are special directory hardlinks primarily used for programs hard coded to write to specific, depreciated folders (Documents and settings, Application Data, etc, instead of using %appdata% or %userprofile%). You cannot access these directly, but you can, however, delete them, if you know none of your programs do not access these specific folders in this specific way. Microsoft makes its money on the back of companies who have many bespoke pieces of software and would require compatibility with new versions of windows to keep their revenue stream high - I can't say I've never found a commercial piece of software which writes to these folders specifically (yet...), but I can't say the same for in-house software coded for a specific operating system (IE, XP or 2000). As for the folders in %appdata% with "My" in front of their name, this is just trickery - the directory may be named "My *", but the actual path omits the "My". You can check by clicking in the breadcrumb (address) bar until it turns into a path. Oh, and, if you're wondering - if you DO delete these hardlinks, and then install a piece of software that would try to write to these directories, nothing particularly bad will happen - they will simply recreate the directories in a standard way (ie, real folders). Using hardlinks like this just keeps all the relevant data in one spot. Hope this clears up any confusion.

                        M Offline
                        M Offline
                        Marc Greiner at home
                        wrote on last edited by
                        #49

                        Thanks for sharing this, I always wondered why these pseudo folders were there.

                        1 Reply Last reply
                        0
                        • C Chris C B

                          I had that behaviour, until I moved the 'Chris C-B' folder to the D drive, in the approved way. I then deleted the shortcuts that had been left behind, and it all works just fine now.

                          E Offline
                          E Offline
                          Euhemerus
                          wrote on last edited by
                          #50

                          Chris C-B wrote:

                          until I moved the 'Chris C-B' folder to the D drive, in the approved way.

                          What is the 'approved way'? I click on the user name from the start menu and change the location for each folder that then appears. This sometimes leads to all sorts of problems especially if i've reinstalled windows and the SID has changed; which undoubtedly it will :( . In this case, I wipe the partition that the data is on and maually create the folders and then change the locations to the newly created folders after restoring the data. If I don't do things this way, I often find that I can't access the folders anymore.

                          Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                          A 1 Reply Last reply
                          0
                          • D Dan Neely

                            That's what you get for turning on show hidden/OS files. To allow badly written legacy apps (ie those that don't use win32 apis to get the folder locations) to keep working there're a whole mess of hidden shortcuts in the user folders. MS could've added yet another Really Really Really hidden files level; but 99% of us geeks who have show hidden files checked would just check Show Really Really Really hidden files as well so there'd not really be any point to it.

                            3x12=36 2x12=24 1x12=12 0x12=18

                            E Offline
                            E Offline
                            Euhemerus
                            wrote on last edited by
                            #51

                            Dan Neely wrote:

                            but 99% of us geeks who have show hidden files checked would just check Show Really Really Really hidden files as well so there'd not really be any point to it.

                            Or they could just employ a rootkit to hide what they don't want you to see. In fact, who knows if they haven't done this already and we're all blissfully unaware :laugh:

                            Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                            1 Reply Last reply
                            0
                            • D Dan Neely

                              Dave Parker wrote:

                              I like to have my entire "Documents and Settings" (now "Users") folder

                              Can you still change the path by slipstreaming it in the install disk?

                              Dave Parker wrote:

                              I want to avoid unnecessary writes to all the app data / local settings / temp folders etc.

                              I think you're probably worrying over nothing. After ~16 months of storing everything except media files on my primary desktop, my Indilynx Barefoot SSD was at 96% lifetime left.

                              3x12=36 2x12=24 1x12=12 0x12=18

                              E Offline
                              E Offline
                              Euhemerus
                              wrote on last edited by
                              #52

                              Dan Neely wrote:

                              Can you still change the path by slipstreaming it in the install disk?

                              AFAIK there isn't a program for slipstreaming Windows 7 ATM. The usual one, Vlite, didn't support Windows 7 when I last looked (a month ago) which is a bummer really. There's really nothing better or faster than a bloat free OS. Just for kicks, I loaded Windows NT onto a virtual machine and boy, does that OS fly!

                              Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                              A 1 Reply Last reply
                              0
                              • E Euhemerus

                                Dan Neely wrote:

                                Can you still change the path by slipstreaming it in the install disk?

                                AFAIK there isn't a program for slipstreaming Windows 7 ATM. The usual one, Vlite, didn't support Windows 7 when I last looked (a month ago) which is a bummer really. There's really nothing better or faster than a bloat free OS. Just for kicks, I loaded Windows NT onto a virtual machine and boy, does that OS fly!

                                Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                                A Offline
                                A Offline
                                Alan M Burns
                                wrote on last edited by
                                #53

                                RT7 Lite supports it, but of course you could always fall back on "Old Faithful" and simply use the Windows Automated Installation Kit to perform the slipstreaming.

                                E 1 Reply Last reply
                                0
                                • E Euhemerus

                                  Chris C-B wrote:

                                  until I moved the 'Chris C-B' folder to the D drive, in the approved way.

                                  What is the 'approved way'? I click on the user name from the start menu and change the location for each folder that then appears. This sometimes leads to all sorts of problems especially if i've reinstalled windows and the SID has changed; which undoubtedly it will :( . In this case, I wipe the partition that the data is on and maually create the folders and then change the locations to the newly created folders after restoring the data. If I don't do things this way, I often find that I can't access the folders anymore.

                                  Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                                  A Offline
                                  A Offline
                                  Alan M Burns
                                  wrote on last edited by
                                  #54

                                  Right click on the folders within My Documents and right click > properties. Select the Location tab then select "Move". One thing though, even if you reinstall and SID's change, you can simply update the permissions on the folders - the following commands can be used from an elevated command prompt to do so. Replace the bold segments as appropriate. Files: takeown /f file_name /d y icacls file_name /grant administrators:F Folders: takeown /f directory_name /r /d y icacls directory_name /grant administrators:F /t Obviously if the directory/file path has spaces in it, you'd need to encase file_name or directory_name in quotes.

                                  E 1 Reply Last reply
                                  0
                                  • A Alan M Burns

                                    Until Microsoft implements application level virtualization for older programs, there is no way WinSxS will disappear. It's the lesser of two evils, without this no software would've worked properly in Vista and now Windows 7 without being rewritten to use the new Vista versions of files. Can you imagine how much worse Vista would've been seen if Microsoft basically told every one of it's 100k+ strong programming community to just tough up and recode every single application specifically for Vista? Not even going to bother thinking about in-house software here.

                                    E Offline
                                    E Offline
                                    Euhemerus
                                    wrote on last edited by
                                    #55

                                    Alan M Burns wrote:

                                    there is no way WinSxS will disappear.

                                    If Microsoft had designed Windows PROPERLY in the first place there would be no need for the WinSxS folder. If Commodore could get it right when they designed the Amiga OS i'm sure Microsoft could have got it right. Each subsequent version of Workbench (the Amiga OS) was backward compatible with previous versions. This was achieved by reusing the old libraries and adding the new fuctionality code to the end of these libraries; the libraries grew in size. Any program using the libraries only needed to specify the minimum library version that was required. In the code snippet below, the program is asking for the minimum version of the libraries to be 36, any library whose version was higher than 36 would still be able to supply the same functionality without having to resort to multiple versions of the same dll file.

                                    /*
                                    * Code to test AppIcon feature of Workbench
                                    */

                                    #include "appicon.image"

                                    struct IntuitionBase *IntuitionBase;
                                    struct WorkbenchBase *WorkbenchBase;
                                    struct IconBase *IconBase;

                                    void main(void);

                                    void
                                    main(void)
                                    {
                                    struct MsgPort *msgport;
                                    struct Window *win;
                                    struct AppIcon *ai;
                                    struct IntuiMessage *imsg;
                                    struct AppMessage *amsg;
                                    struct WBArg *argptr;
                                    struct DiskObject *dobj;

                                    ULONG id = 1, userdata = 0;
                                    BOOL done = FALSE;
                                    int i, imagememsize = 0;

                                    printf("ai: enter\n");

                                    if (IntuitionBase = OpenLibrary("intuition.library", 36)) {
                                    if (WorkbenchBase = OpenLibrary("workbench.library", 36)) {
                                    if (IconBase = OpenLibrary("icon.library", 36)) {
                                    if (msgport = CreateMsgPort()) {
                                    if (win = OpenWindowTags(NULL,
                                    WA_Left, 0,
                                    WA_Top, 1,
                                    WA_Width, 160,
                                    WA_Height, 50,
                                    WA_IDCMP, CLOSEWINDOW,
                                    WA_Flags, WINDOWCLOSE | WINDOWDRAG,
                                    WA_Title, "AppIcon",
                                    TAG_END)) {

                                    Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                                    1 Reply Last reply
                                    0
                                    • A Alan M Burns

                                      Right click on the folders within My Documents and right click > properties. Select the Location tab then select "Move". One thing though, even if you reinstall and SID's change, you can simply update the permissions on the folders - the following commands can be used from an elevated command prompt to do so. Replace the bold segments as appropriate. Files: takeown /f file_name /d y icacls file_name /grant administrators:F Folders: takeown /f directory_name /r /d y icacls directory_name /grant administrators:F /t Obviously if the directory/file path has spaces in it, you'd need to encase file_name or directory_name in quotes.

                                      E Offline
                                      E Offline
                                      Euhemerus
                                      wrote on last edited by
                                      #56

                                      Thanks for that, I feel a batch file coming on! :laugh:

                                      Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                                      C 1 Reply Last reply
                                      0
                                      • A Alan M Burns

                                        RT7 Lite supports it, but of course you could always fall back on "Old Faithful" and simply use the Windows Automated Installation Kit to perform the slipstreaming.

                                        E Offline
                                        E Offline
                                        Euhemerus
                                        wrote on last edited by
                                        #57

                                        Alan M Burns wrote:

                                        "Old Faithful" and simply use the Windows Automated Installation Kit to perform the slipstreaming.

                                        Hmmmm, hadn't thought of that, will WAIK let you strip out unnecessary bloat?

                                        Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                                        A 1 Reply Last reply
                                        0
                                        • E Euhemerus

                                          Alan M Burns wrote:

                                          "Old Faithful" and simply use the Windows Automated Installation Kit to perform the slipstreaming.

                                          Hmmmm, hadn't thought of that, will WAIK let you strip out unnecessary bloat?

                                          Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

                                          A Offline
                                          A Offline
                                          Alan M Burns
                                          wrote on last edited by
                                          #58

                                          Yes, WAIK (basically, parts of it) are what RT7 and Vlite use(d) to do their job. RT7 lite just puts a nice GUI over the top of it, so that the WAIK is less intimidating (and complex) to use. By the way, Vlite went out of development years ago, at the same time nlite did - nuhi apparently had too much on his plate to continue it. He didn't open source it, though, which is a shame since it could've been put back into development immediately if he had - instead we had to wait about 18 months for a relatively similar bit of kit from a different group of people to come along.

                                          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