Solved

Convert Reg keys into VBS script

Posted on 2014-10-03
1
208 Views
Last Modified: 2014-10-09
Hi,
Could someone help me convert the following two Reg keys into VBS script? Thank you!


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Echo]
"ECHO_DIRECTORY"="C:\\NRTEcho"
"ECHO_SIZE"=dword:000007d0

[HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Portable]
"PORTABLE_DIRECTORY"="C:\\NRPortbl"
"DBLIST"="IMANAGE"
0
Comment
Question by:jimmyhtn
1 Comment
 
LVL 20

Accepted Solution

by:
ltlbearand3 earned 500 total points
ID: 40360882
I am assuming you just want a vbscript that can update those registries?  If so, you can use the Wscript.Shell object as one option.  (There are other options, but this is the simpliest looking code)

Give this a shot.

Option Explicit
Dim objShell

Set objShell = CreateObject("WScript.Shell")

objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Echo\ECHO_DIRECTORY", "C:\\NRTEcho", "REG_SZ"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Echo\ECHO_SIZE", "000007d0", "REG_DWORD"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Portable\PORTABLE_DIRECTORY", "C:\\NRPortbl", "REG_SZ"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Portable\DBLIST", "IMANAGE", "REG_SZ"

msgbox "Registry Updated"

Open in new window

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question