How might this work? Let’s suppose you need to know the model of motherboard used in your PC. It has astonishing scope and a huge set of features: the program can return useful information about your system, control running programs, and generally manage just about every aspect of your PC, all from the command line or a convenient shortcut.
#WMIC UNINSTALL NAME LIKE WINDOWS#
Every version of Windows sees the command line given new powers and abilities, and if you don’t explore these then you really are missing out.
#WMIC UNINSTALL NAME LIKE INSTALL#
echo.************************************************************************ echo.************************************************************************ wmic product where "name like 'Java(TM) 6%%'" call uninstall wmic product where "name like 'Java 7%%'" call uninstall wmic product where "name like 'Java 8%%'" call uninstall wmic product where "name like 'Java Auto Update%%'" call uninstall REM Install JRE x86 mkdir c:\666 xcopy /Y "\\10.7.8.227\file\JAVA\*" c:\666 start /w c:\666\jre-8u45-windows-i586.exe /s /L c:\666\setup.log rmdir /S /Q c:\666 exit :W7 IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT) :64BIT echo *** This will kill Browsers and Java Processes *** Rem *** taskkill /F /IM iexplorer.exe taskkill /F /IM iexplore.exe taskkill /F /IM firefox.exe taskkill /F /IM chrome.exe taskkill /F /IM jusched.exe taskkill /F /IM jp2launcher.exe taskkill /F /IM java.exe taskkill /F /IM javaw.exe taskkill /F /IM jqs.exe wmic product where "name like 'Java(TM) 6%%'" call uninstall wmic product where "name like 'Java 7%%'" call uninstall wmic product where "name like 'Java 8%%'" call uninstall wmic product where "name like 'Java Auto Update%%'" call uninstall mkdir c:\666 xcopy /Y "\\10.7.8.227\file\JAVA\*" c:\666 start /w c:\666\jre-8u45-windows-圆4.exe /s /L c:\666\setup.log rmdir /S /Q c:\666 exit :32BIT echo *** This will kill Browsers and Java Processes *** Rem *** taskkill /F /IM iexplorer.exe taskkill /F /IM iexplore.exe taskkill /F /IM firefox.exe taskkill /F /IM chrome.exe taskkill /F /IM jusched.exe taskkill /F /IM jp2launcher.exe taskkill /F /IM java.exe taskkill /F /IM javaw.exe taskkill /F /IM jqs.exe wmic product where "name like 'Java(TM) 6%%'" call uninstall wmic product where "name like 'Java 7%%'" call uninstall wmic product where "name like 'Java 8%%'" call uninstall wmic product where "name like 'Java Auto Update%%'" call uninstall mkdir c:\666 xcopy /Y "\\10.7.8.227\file\JAVA\*" c:\666 start /w c:\666\jre-8u45-windows-i586.exe /s /L c:\666\setup.log rmdir /S /Q c:\666 exit All the Java versions from your computer are being removed.