Solved

Changing\Add Windows Registry Values

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
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 properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

751 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