I recommend that you forego using cfexecute and look instead at two
different resources:
1. CF_ADSI at http://www.cfcomet.com/ which is a COM .dll that
encapsulates the ADSI calls to do this sort of thing so you can call it
from cfobject.
2. Intranet / Hosting Toolkit at http://www.intrafoundation.com/ihtk.html
- while I haven't used this one myself, it looks to be a fairly complete
package that uses CFX tags instead of a COM object.
|---------+---------------------------------------------------------------|
|Eric A. |There are many who are uncomfortable with what we have created.|
|Laney |It is almost a biological rebellion. A profound revulsion |
|Systems |against the planned communities, the programming, the |
|Engineer |sterilized, artfully balanced atmospheres. They hunger for an |
|LAN |Eden, where spring comes. |
|Optimizat| |
|ion Team |We all do. The cave is deep in our memories. |
|Voice: | |
|813.978.4| |
|404 | - Spock and Kirk, "The Way to Eden," stardate 5832.3.|
|Pager: | |
|888.985.8| |
|519 | |
|---------+---------------------------------------------------------------|
"Chad Gray"
<chad@attach. To: CF-Talk <[EMAIL PROTECTED]>
net> cc:
Subject: CFEXECUTE and the quote symbol
07/30/2001
12:52 PM
Please
respond to
cf-talk
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