Use single quotes for the internal argument:
<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">
Marius Milosav
www.scorpiosoft.com
It's not about technology, it's about people.
Virtual Help Desk Demo (VHD)
www.scorpiosoft.com/vhd/login.cfm
----- Original Message -----
From: "Chad Gray" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:52 PM
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 " 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