Results 1 to 3 of 3

Thread: Modify (Default) Registry Value

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229

    Modify (Default) Registry Value

    Hi, thanx in advance for taking the time to read this. I need to modify the "(default)" value under the ".php" key situated under HKEY_CLASSES_ROOT. I'm using WinShell and WinShell.RegRead WinShell.RegWrite. Is there something that will modify the registry value?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    COMMON...d

  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    You are doing it right

    I'm not sure I understand your question, cause it looks like you are using the right methods to read/write to the registry.

    You need to have the full value name, then you pass the value as the first parameter to RegWrite and the new data as the second parameter.

    To edit the (Default) value, you just use the key name followed by a backslash (but don't write "(Default)"

    Example:
    VB Code:
    1. ' To write to the (Default) value of the TimeZoneInformation key:
    2.  
    3. WinShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\", "MyNewValue"
    4. ' Notice the backslash after the key, but no value name
    5.  
    6. ' To write to the DaylightName value:
    7.  
    8. WinShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\DaylightName", "MyNewValue"
    9. ' Notice above I used the value name
    ~seaweed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width