Today, I suddenly want to add a toggle to the resource manager to set hidden files and folders. The script for implementing the function was quickly written, but Google did not find a simple way to add custom buttons to the resource manager for a long time. I mistakenly thought it was okay, but it was a custom button added to IE.
The successful result of subfolder is to study a uuid. Download and use jug.
In fact, you only need to press the folder option twice. Or you can use shortcuts to Increase the number. Give up.
The script hidden-toggle.js is 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. UUID. 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 ");