Solved

Changing\Add Windows Registry Values

Posted on 2000-03-14
2
156 Views
Last Modified: 2013-12-24
How can I change\add values to the Windows Regsitry using Coldfusion ? I am particularly interested in changing\adding to the registry items that are connected with ODBC.

I would be grateful for all advice offered regarding this.

Thanks in advance

John
0
Comment
Question by:johnclarke
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Expert Comment

by:samphi
ID: 2615893
with CFREGISTRY.

But, ColdFusion Administrator can disable CFREGISTRY.

Phil.
0
 
LVL 9

Accepted Solution

by:
Dain_Anderson earned 100 total points
ID: 2793631
The obvious answer is the CFRegistry tag or the undocumented CFNewInternalRegistry:


Get the OBDC listing:
<CFREGISTRY
    ACTION="GETALL"
    BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources"
    NAME="ODBCList">

Loop through the listing (use var.entry, var.type, and var.value)
<CFLOOP QUERY = ODBCLIST>
    <CFOUTPUT>#ODBCList.entry# #ODBCList.type# #ODBCList.value#<BR></CFOUTPUT>
</CFLOOP>

You can also add items with this tag:
<CFREGISTRY ACTION="Set"
    BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources"
    ENTRY="hola"
    TYPE="String"
    VALUE="Microsoft Access Driver (*.mdb)">


Hope that helps.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

624 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