I think you should be able to double up on the quote within the quote to
"escape" it.

that is:
<cfset blah="hello ""world""!">

blah -> hello "world"!

-Ryan

-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 12:52 PM
To: CF-Talk
Subject: CFEXECUTE and the quote symbol


Hello,

Im trying to automate the Win2K command Net User to add users to the
computer.

The problem im running into is i need to use a " inside of the 
argument.  Well when CF sees the " it thinks it is the end of the CFEXECUTE 
tag.

Anyway to escape this quote symbol?  I tried using &quot; but that did not 
work.



<cfexecute name="c:\winnt\system32\net.exe"
arguments="user #GetUsers.Login# #GetUsers.Password# /add 
/fullname:"BILLYBOB" /expires:never /passwordchg:no /passwordreq:yes"
outputfile="c:\output.txt">

</cfexecute>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to