Hide hidden files, system files and extensions with Java
void HideThemAll(){
	try {
		Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 2 /f");
		Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f");
		Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v SuperHidden /t REG_DWORD /d 0 /f");
		Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowSuperHidden /t REG_DWORD /d 0 /f");
	} catch (IOException ex) {
	}
}
%d bloggers like this: