Hello,

I found a bat script that will remove JRE registry entries to fix Java installation issue.

The bat script looks likes this:

reg query hklm\software\classes\installer\products /f "java(tm) 6" /s | find "HKEY_LOCAL_MACHINE" > deljava.txt

for /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /f

del deljava.txt

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /f

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f

I want to deploy this bat file to clients experiencing the Java installation issue and i need this bat file to run silently so the user wont notice the DOS window popping up.

What command switch is needed to do this?

Or is it better to command the window to close by typing "Exit" at the end of this bat file?

Cheers!
Gage




0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
see
http://www.itninja.com/blog/view/how-to-hide-running-a-batch-file-from-a-kscript-with-version-5-5
Answered 08/25/2014 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share