Pesquisar este blog

Páginas

Boo-box

quarta-feira, maio 28, 2008

Explorer.Exe usando 99% da CPU

Estou com um problema em meu computador... O Explorer.Exe está travando a máquina com 99% de uso de CPU. Descobri a cura em um forum, mas não funcionou exatamente. A solução foi usar o Powerdesk.

According to Microsoft: "By default, when the system cannot find the target file for a shortcut (.lnk), it searches all paths associated with the shortcut. If the target file is located on an NTFS partition, the system then uses the target's file ID to find a path. If the resulting path is not correct, it conducts a comprehensive search of the target drive in an attempt to find the file."

This means that when a shortcut references a file that isn't there (an offline network resource or a missing file, for example, \\mycomputer\photos), Windows XP will hang for a long time when you simply open the folder that contains the shortcut. Windows XP hangs while it tries to find the resource, even though you didn't double-click the shortcut. It's especially frustrating while going through your old backups of folders on another computer, or a freshly reinstalled computer. Or if the network resource is offline.

Here's how to fix it!

Using Group Policy

Click Start, click Run, then type gpedit.msc. Press ENTER
Under User Configuration expand Administrative Templates, and then expand Start Menu and Taskbar.
Double-click Do not use the search-based method when resolving shell shortcuts, and then click Enable.
Double-click Do not use the tracking-based method when resolving shell shortcuts, and then click Enable.
Expand User Configuration, expand Administrative Templates, expand Windows Components, expand Windows Explorer, double-click Do not track Shell shortcuts while roaming, and then click Enable.

This will shorten the two-minute-long hang to about 3 seconds.

There's an alternate solution that's fairly easy and works on Windows XP Home where you don't have Group Policy (and I don't know the registry settings for the above); instead of creating a shortcut to the resource, create a shortcut to Windows Explorer, with a switch to open the resource!

For example:

1. Right-click the Desktop.

2. Point to New, and then click Shortcut.

3. Type the following, and then click Next (don't forget to type the comma, and specify the URL for your resource):

%SYSTEMROOT%\explorer.exe /e, \\mycomputer\photos

4. Type a name for the shortcut, and then click Finish.

5. Copy or move the shortcut to your favorites folder or wherever!

If you want to create additional "shortcuts", simply copy the one you made, right-click the copy, click Propertiesand then modify the URL.

While you are at it, here are some really useful shortcuts that will work on any computer:

%SYSTEMROOT%\explorer.exe /e, "%userprofile%\application data
%SYSTEMROOT%\explorer.exe /e, "%userprofile%\application data\Microsoft\Internet Explorer\Quick Start
%SYSTEMROOT%\explorer.exe /e, "%userprofile%\application data\Microsoft\Signatures
%SYSTEMROOT%\explorer.exe /e, "%userprofile%\Local Settings\Temporary Internet Files"
%SYSTEMROOT%\explorer.exe /e, %userprofile%\desktop

Nenhum comentário: