Solved

Changing\Add Windows Registry Values

Posted on 2000-03-14
2
150 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
2 Comments
 

Expert Comment

by:samphi
Comment Utility
with CFREGISTRY.

But, ColdFusion Administrator can disable CFREGISTRY.

Phil.
0
 
LVL 9

Accepted Solution

by:
Dain_Anderson earned 100 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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 prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now