Page 1 of 1

add del reg key to my script

Posted: 13 Mar 2014 00:00
by swan_x
hello! i want add del reg key to my script; now i have:
backupto "D:\red\", "C:\blue\file.dat|C:\blue\file.exe", 2, 0, 0, 0, 0, 0, 0; delete 0, 0, "D:\green\*.*"

now i want add del reg key to my script : delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\yellow"
but this not work correctly...where is the error?? please help me!

Re: add del reg key to my script

Posted: 13 Mar 2014 08:47
by highend
Which error?
XY doesn't do any registry manipulation (by scripting).

You have to use run();

Code: Select all

run """%ComSpec%"" /c reg delete ""HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\yellow"" /f", , 0, 1;
Ofc only if "yellow" is a key, not a value...

Re: add del reg key to my script

Posted: 13 Mar 2014 09:53
by swan_x
yes! work! many tnxs! :appl: