To the resource manager, the custom button failed: (

xiaoxiao2021-03-06  102

Today, I suddenly want to add a Toggle to the resource manager to set the hidden files and folders. The implementation of the function is soon written quickly, but Google has been half a day, that is, there is no simple way to add a custom button to the resource manager. Before mistaken, it can be, but it is the custom button to add IE.

The harvest of the way is to study a burst of UUID. Download and use Jug.

Its real use of folder options is only more pressing. Or take shortcuts. I gave up.

Attached to the feet Hidden-Toggle.js as follows:

// Hidden Toggle V1.0

// (Folder Hidden Setting Of Explorer)

// by Hax, 2004-8-25

// Uri: http://hax.uri.cn/UTIL/HIDDEN-TOGGLE

// UUID: Dedef6b4-5300-3780-a8c5-0848a1648b04

// (generated by jug: java -cp jug.jar org.doomDark.uID.jug

// -s url -n http://hax.uri.cn/UTIL/HIDDEN-TOGGLE N)

Var wshshell = wscript.createObject ("wscript.shell");

Var REG = "HKEY_CURRENT_USER / / SOFTWARE // Microsoft // Windows // CurrentVersion // Explorer // AdvanceD // Hidden"

Var Showall = 1, nohidden = 2;

Var key = wshshell.regread (reg);

IF (key == showall) WSHShell.Regwrite (Reg, Nohidden, "REG_DWORD");

Else if (key == nohidden) WSHSHELL.REGWRITE (REG, Showall, "REG_DWORD");

转载请注明原文地址:https://www.9cbs.com/read-123510.html

New Post(0)