add del reg key to my script

Discuss and share scripts and script files...
Post Reply
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

add del reg key to my script

Post 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!

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: add del reg key to my script

Post 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...
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: add del reg key to my script

Post by swan_x »

yes! work! many tnxs! :appl:

Post Reply