process - How to use reg add in java code -


how change control panel windows update setting using java code.

final string reg_add_cmd ="cmd /c reg add \"hkey_local_machine\\software\\microsoft\\windows\\currentversion\\windowsupdate\\auto update\" /v auoptions /t reg_dword /d 1 /f"; process objprocess; objprocess = runtime.getruntime().exec(reg_add_cmd); 

above code not disabling update in control panel.please me


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -