![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | RegWrite Syntax I need to know the syntax for RegWrite so I can correct the script below. All help is greatly appreciated. Hal **** The Script **** DIM BitState Set WshShell = CreateObject("WScript.Shell") BitState = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\MTU Friedrichshafen\DIASYS\Settings\bTBRecSave") If BitState = 1 Then WScript.echo "Diasys Recording is On" ElseIf BitState = 0 Then WScript.echo "Diasys Recording is Off" Else WScript.echo "BitState Value of " & BitState & " Invalid" BitState = 0 WshShell.RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\MTU Friedrichshafen\DIASYS\Settings\bTBRecSave=dword:00000000) WScript.echo "BitState Value Set to " & BitState End If |
My System Specs![]() |
| | #2 (permalink) |
| | Re: RegWrite Syntax "Hal" <Hal@xxxxxx> wrote in message news:2F95C5F1-3235-40EE-A4A1-6F7C39DC22B4@xxxxxx Quote: >I need to know the syntax for RegWrite so I can correct the script below. > > All help is greatly appreciated. > > Hal > > **** The Script **** > > DIM BitState > Set WshShell = CreateObject("WScript.Shell") > > BitState = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\MTU > Friedrichshafen\DIASYS\Settings\bTBRecSave") > > If BitState = 1 Then > WScript.echo "Diasys Recording is On" > ElseIf BitState = 0 Then > WScript.echo "Diasys Recording is Off" > Else > WScript.echo "BitState Value of " & BitState & " Invalid" > BitState = 0 > WshShell.RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\MTU > Friedrichshafen\DIASYS\Settings\bTBRecSave=dword:00000000) > WScript.echo "BitState Value Set to " & BitState > End If explanation of the sytax for the RegWrite method and there are also several examples. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: RegWrite Syntax On Sep 14, 1:19*pm, "Pegasus \(MVP\)" <I....@xxxxxx> wrote: Quote: > "Hal" <H...@xxxxxx> wrote in message > > news:2F95C5F1-3235-40EE-A4A1-6F7C39DC22B4@xxxxxx > > > Quote: > >I need to know the syntax for RegWrite so I can correct the script below.. Quote: > > All help is greatly appreciated. Quote: > > Hal Quote: > > **** The Script **** Quote: > > DIM BitState > > Set WshShell = CreateObject("WScript.Shell") Quote: > > BitState = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\MTU > > Friedrichshafen\DIASYS\Settings\bTBRecSave") Quote: > > If BitState = 1 Then > > *WScript.echo "Diasys Recording is On" > > ElseIf BitState = 0 Then > > *WScript.echo "Diasys Recording is Off" > > Else > > *WScript.echo "BitState Value of " & BitState & " Invalid" > > *BitState = 0 > > *WshShell.RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\MTU > > Friedrichshafen\DIASYS\Settings\bTBRecSave=dword:00000000) > > *WScript.echo "BitState Value Set to " & BitState > > End If > Download a copy of script56.chm from the Microsoft site. It includes a full > explanation of the syntax for the RegWrite method and there are also several > examples. http://www.microsoft.com/downloads/d...displaylang=en Tom Lavedas =========== http://members.cox.net/tglbatch/wsh/ |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Set empty default registry key value using regwrite ? | VB Script | |||
| Generic Interface syntax in VS 2005 using Old syntax | .NET General | |||
| Help with syntax | PowerShell | |||
| "invalid STORE command syntax invalid message set syntax" | Vista mail | |||
| need syntax | Vista hardware & devices | |||