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

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -