Classic Shell
http://classicshell.net/forum/

god mode folders hang classic shell
http://classicshell.net/forum/viewtopic.php?f=12&t=4049
Page 1 of 1

Author:  dmcdivitt [ Fri Dec 26, 2014 2:12 pm ]
Post subject:  god mode folders hang classic shell

I ran a bat file containing the commands below causing Classic Shell to hang. I wanted to create the folders in my start menu. I didn't know there was a problem immediately, since I didn't reboot my computer and reload Classic Shell right away. The current release version 4.1.0 would hang. The beta version would work but open the start menu with noticeable delay. Probably one of the god mode folders is self referencing causing infinite recursion. Thanks

Code:
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Location Settings.{00C6D95F-329C-409a-81D7-C46C66EA7F33}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Biometric Settings.{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Power Settings.{025A5937-A6BE-4686-A844-36FE4BEC8B6D}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Icons And Notifications.{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Credentials and Logins.{1206F5F1-0569-412C-8FEC-3204630DFB70}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Programs and Features.{15eae92e-f17a-4431-9f28-805e482dafd4}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Default Programs.{17cd9488-1228-4b2f-88ce-4298e93e0966}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\All NET Frameworks and COM Libraries.{1D2680C9-0E2A-469d-B787-065558BC7D43}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\All Networks For Current Connection.{1FA9085F-25A2-489B-85D4-86326EEDCD87}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Network.{208D2C60-3AEA-1069-A2D7-08002B30309D}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Application Connections.{241D7C96-F8BF-4F85-B01F-E2B043341A4B}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Firewall and Security.{4026492F-2F69-46B8-B9BF-5654FC07E423}
mkdir "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Special Folders\Performance.{78F3955E-3B90-4184-BD14-5397C15F1EFC}


Author:  Ivo [ Fri Dec 26, 2014 2:35 pm ]
Post subject:  Re: god mode folders hang classic shell

Can you try narrowing it down to the folder causing the problem?
My first suspect would be the network-related folders. If you have network connections that are inaccessible, there will be a delay until the connection times out.

Author:  dmcdivitt [ Fri Dec 26, 2014 3:42 pm ]
Post subject:  Re: god mode folders hang classic shell

It was not LAN access but hard disk access. Classic Shell loaded, but when the start button was clicked it hung, a message displayed saying "please wait while initial scan is performed" or something to that effect, the machine became sluggish, and the hard disk light was on steady. I changed the commands so god mode folders are made on the desktop in a folder named "Special Folders". Run the bat file, open Special Folders, and click on each of the folders created there. Whichever one causing Classic Shell to scan forever should be obvious to someone who knows the code to the program.

Code:
mkdir "%USERPROFILE%\desktop\Special Folders
mkdir "%USERPROFILE%\desktop\Special Folders\God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}
mkdir "%USERPROFILE%\desktop\Special Folders\Location Settings.{00C6D95F-329C-409a-81D7-C46C66EA7F33}
mkdir "%USERPROFILE%\desktop\Special Folders\Biometric Settings.{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}
mkdir "%USERPROFILE%\desktop\Special Folders\Power Settings.{025A5937-A6BE-4686-A844-36FE4BEC8B6D}
mkdir "%USERPROFILE%\desktop\Special Folders\Icons And Notifications.{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}
mkdir "%USERPROFILE%\desktop\Special Folders\Credentials and Logins.{1206F5F1-0569-412C-8FEC-3204630DFB70}
mkdir "%USERPROFILE%\desktop\Special Folders\Programs and Features.{15eae92e-f17a-4431-9f28-805e482dafd4}
mkdir "%USERPROFILE%\desktop\Special Folders\Default Programs.{17cd9488-1228-4b2f-88ce-4298e93e0966}
mkdir "%USERPROFILE%\desktop\Special Folders\All NET Frameworks and COM Libraries.{1D2680C9-0E2A-469d-B787-065558BC7D43}
mkdir "%USERPROFILE%\desktop\Special Folders\All Networks For Current Connection.{1FA9085F-25A2-489B-85D4-86326EEDCD87}
mkdir "%USERPROFILE%\desktop\Special Folders\Network.{208D2C60-3AEA-1069-A2D7-08002B30309D}
mkdir "%USERPROFILE%\desktop\Special Folders\My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}
mkdir "%USERPROFILE%\desktop\Special Folders\Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}
mkdir "%USERPROFILE%\desktop\Special Folders\Application Connections.{241D7C96-F8BF-4F85-B01F-E2B043341A4B}
mkdir "%USERPROFILE%\desktop\Special Folders\Firewall and Security.{4026492F-2F69-46B8-B9BF-5654FC07E423}
mkdir "%USERPROFILE%\desktop\Special Folders\Performance.{78F3955E-3B90-4184-BD14-5397C15F1EFC}


Author:  Ivo [ Sat Dec 27, 2014 11:43 am ]
Post subject:  Re: god mode folders hang classic shell

The biggest offenders in your list are Network (includes all network machines and their shared folders) and My Computer (includes all drives on your machine).
The start menu has to crawl them all to collect the files and their attributes. That's hundreds of thousands, or even millions of files. The start menu is not designed to handle that amount of fileage.

Remove the two items and the menu will open quickly.

Author:  dmcdivitt [ Sat Dec 27, 2014 12:51 pm ]
Post subject:  Re: god mode folders hang classic shell

I understand I can avoid using one or more god mode folders. In my bug description I said the problem is infinite recursion. This is a bug because Classic Shell should check for that. Control Panel and a couple of other things are virtual folders, but they only go one level deep. Having Windows 8.1, my start menu shows "This PC". Classic Shell does not hang while scanning all folders on that node the way it hangs if a god mode folder is added to the start menu. This is because the "This PC" node was anticipated by developers to have that functionality. The presence of a god mode folder was not anticipated. In all likelihood placing a junction file entry in the start menu would do the same, though I'm not going to try it. Placing a shortcut in the start menu does not cause scanning of the shortcut, either.

Maybe god mode folders would be a nice enhancement to Classic Shell. In settings there could be an option saying "show god mode folders" and enumerating with a checkbox on each. Just a thought.

Thanks for making Classic Shell. I'd be lost without it.

Author:  Ivo [ Sat Dec 27, 2014 1:20 pm ]
Post subject:  Re: god mode folders hang classic shell  Topic is solved

No, the problem is not infinite recursion. The start menu stops scanning at 10 folder levels deep.
The problem is that you are including every single file on your computer and on the network.
Shortcuts are not scanned recursively. But you are not adding a shortcut. You are adding a shell namespace node, which is indistinguishable from a sub-folder. It is acting like a junction but for the shell instead of the file system.
If you want a shortcut to "This PC" or "That Network", add a shortcut. Don't add the entire PC or network.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/