This problem is because you have a bad startup entry in your registry, or startup is trying to load a file or a executable which is missing, so that causes the system32 folder to pop-up, go to start> run, type in msconfig, under startup have a look at if any of the items are missing from the location specified.