Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing\Add Windows Registry Values

Posted on 2000-03-14
2
Medium Priority
?
158 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 400 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

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.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
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 Import and export files in WordPress. 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 : Click on Too…

718 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