![]() |
|
|
| Subject:
Windows Scripting For Registry
Category: Computers > Operating Systems Asked by: testthis-ga List Price: $10.00 |
Posted:
05 Dec 2005 06:58 PST
Expires: 04 Jan 2006 06:58 PST Question ID: 601612 |
Am looking for somebody to create me a script (Windows, bat or otherwise), that will run automatically and update a value in an existing key within the Windows Registry. Exact key location will be provided. |
|
| There is no answer at this time. |
|
| Subject:
Re: Windows Scripting For Registry
From: leedashone-ga on 06 Dec 2005 20:25 PST |
================
Use batch file:
================
1.create an text file for the registry value you want to add,, like:
c:\test.reg
----------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"WinVNC"="\"C:\\Program Files\\UltraVNC\\WinVNC.exe\" -Servicehelper"
2.write an batch file
test.bat
----------------------------------------------
regedit /s c:\test.reg
If you don't know how the syntax about test.reg, you can make your
registry entry with regedit then export the section to .reg file.
====================
Using windows script
====================
create a text file name c:\test.vbs
-----------------------------------
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Lee",
"c:\windows\notepad.exe"
run this test file:
wscript c:\test.vbs
for more information aboyt windows script host, please visit:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/wsh/htm/wsMthRegWrite.asp |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |