In answer to your original question, and avoiding the rest of this debate, 
you probably need a CR LF on the last line.

><CFSET fileString = fileString & '"administrator"="adminPass"' & #CHR(13)# 
>&#CHR(10)#>

Notepad (at times annoyingly) adds this for you.

At 22:20 7/01/01 -0600, you wrote:
>I am trying to write a simple registry file to send to buyers of my new
>product. It will serve as an unlock code. If I pull up notepad  and type the
>following,
>
>REGEDIT4
>[HKEY_LOCAL_MACHINE\SOFTWARE\myCompany\userAccount\Security]
>"administrator"="adminPass"
>
>I can save it as .reg and it will write the key successfully when you double
>click it.
>If I try to create the file dynamically with the following code. The file
>produced will create the registry keys but will not make the string entry.
>Any idea's how I can make this second process work?
>
><CFSET fileString = "REGEDIT4" & #CHR(13)# & #CHR(10)#>
><CFSET fileString = fileString &
>"[HKEY_LOCAL_MACHINE\SOFTWARE\myCompany\userAccount\Security]" & #CHR(13)# &
>#CHR(10)#>
><CFSET fileString = fileString & '"administrator"="adminPass"'>
>
><CFFILE ACTION="WRITE" FILE="c:\inetpub\wwwroot\Security\account.reg"
>OUTPUT="#fileString#" ADDNEWLINE="No">
>Bryan LaPlante
>816-347-8220
>[EMAIL PROTECTED]
>http://www.netwebapps.com
>Web Development


Bruce Ford                                      [EMAIL PROTECTED]
Online Teaching Systems Coordinator
Teaching and Learning Support Services          Ph: +61 7 3864 9773
Queensland University of Technology


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to