Microsoft
Software
Hardware
Network
Question : Windows Scripting - Regwrite
Firstly i appologise if this is posted in the wrong topic area. I will also be posting it in VB.
How can u use Regwrite to register a shared DLL.
(i may be overlooking something blindingly obvious, I'm not a programer!)
Seems simple but the syntax appears to be
Myshell.regwrite "Registry key\Registry value", data, datatype
The problem being that registry Value is the path to the Dll hence it has a lot of "\"s which regwrite assumes are sub keys.
Set WshShell=WScript.CreateObj
ect("WScri
pt.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
indows\Cur
rentVersio
n\SharedDL
Ls\'C:\Pro
gram Files\xyz.dll'", 00000002, "REG_DWORD"
Answer : Windows Scripting - Regwrite
1. Make a .REG file. Then invoke the file through the script like this:
set o = CreateObject("WScript.Shel
l")
Return=o.run ("regedit /s Your_File.REG",1,true)
2. Or try puting a \ at the end:
Set WshShell=WScript.CreateObj
ect("WScri
pt.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
indows\Cur
rentVersio
n\SharedDL
Ls\'C:\Pro
gram Files\xyz.dll'\",
00000002, "REG_DWORD"
Hope this helps.
Random Solutions
multiple email address, single mailbox, send as either or
MS Access does not connect to MS SQL 2008 through ODBC
First Day of the Week
Blackberry Upgrade and Migration
How to turn off CISCO ASA 5520 continuous ping
WINS Event ID 4227
Increment Field Record by 1
Ghost Solutions Suite 2.5 Image Restore
Using sendmail command line
Microsoft Exchange Server 2007 - event IDs 8026, 8250, 2104, and 2102