Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Server
Cold Fusion Server Tech
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Server: 
Subject: Re: Need some advice
Bruce Ford (4p/+0r)     Posted: Monday 08 Jan 2001
This post: 42 views, +0 rating

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 >blaplante@netwebapps.com >http://www.netwebapps.com >Web Development

Bruce Ford b.ford@qut.edu.au 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 cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com


Similar Subject Line Posts (+/- two weeks of this post)
Re: Need some advice  08 Jan 2001 (this post)   (42 v/ +0 r)
Re: Need some advice  08 Jan 2001   (29 v/ +0 r)
RE: Need some advice  08 Jan 2001   (21 v/ +0 r)
Need some advice  07 Jan 2001   (28 v/ +0 r)
 

Send a reply to the CF-Server list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000