|
-
Jan 5th, 2003, 10:04 AM
#1
Thread Starter
Addicted Member
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?
-
Jan 5th, 2003, 03:31 PM
#2
Thread Starter
Addicted Member
-
Jan 5th, 2003, 03:52 PM
#3
Frenzied Member
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:
' To write to the (Default) value of the TimeZoneInformation key:
WinShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\", "MyNewValue"
' Notice the backslash after the key, but no value name
' To write to the DaylightName value:
WinShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\DaylightName", "MyNewValue"
' Notice above I used the value name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|