Jump to content

Modify Registry


Recommended Posts

Could someone help me with a little scipt that MODIFIES (not creates) the "(Default)" 's string data?

i tried: RegWrite( "HKCR\*\shell\script\command" , "(Default)" , "REG_SZ" , "c:\script.exe %1" ) but it creates another "(Default)" string besides the already existing one.

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

The helpfile explains: "To access the (Default) value use "" (a blank string) for the valuename."

RegWrite("HKCR\*\shell\script\command", "", "REG_SZ", "c:\script.exe %1")

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

The helpfile explains: "To access the (Default) value use "" (a blank string) for the valuename."

RegWrite("HKCR\*\shell\script\command", "", "REG_SZ", "c:\script.exe %1")

Thank yopu very much. I'm so sorry i opened a thread without paying more attention at the help file.

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...