You want to execute cmd.exe and pass in the /c and the rest of your command
as the arguments... Also net user.exe is not an executable, it's one of the
commands provided by cmd.exe.. So your code would go something like... Note
that you might have to escape the \

<cfexecute name="c:\windows\system32\cmd.exe" arguments="/c net user #args#"
timeout="10" />

-----Original Message-----
From: Brian Polackoff [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 11:07 AM
To: CF-Talk
Subject: CF Execute Error... Silly Java....

Trying to use cfexecute to change an AD password.  Works no problem from the
command prompt however when I load the page it get:

 

The cause of this exception was that: java.io.IOException: CreateProcess:
"net user.exe" MYUSERNAME MYPASSWORD /domain error=2 

 

-          or - 

-           

The cause of this exception was that: java.io.IOException: CreateProcess:
"net user.exe" MYUSERNAME MYPASSWORD /domain error=3

 

My psuedocode is:

 

cfset args = "#Trim("MYUSERNAME")# #Trim("MYPASSWORD")# /domain"

 

cfsavecontent variable="results"

            cfexecute name="net user.exe" arguments="#args#" timeout="10" /

/cfsavecontent

 

I have verified that the account that runs the Coldfusion service has the
appropriate rights to access net user.exe and verified that the cfexecute
tag is not disabled in cfadmin.

 

Any Ideas would be greatly appreciated.

 

Thanks,
Brian R. Polackoff

 

Coldfusion Version 6.1

 

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216699
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to