Skip to main content
Participant
January 27, 2010
Question

CFExecute and Special Chars (I think)

  • January 27, 2010
  • 1 reply
  • 349 views

I'm trying to use cfexecute to update disabled users' domain attributes which requires their UserDN. When I query this from the DB and use cfoutput it looks fine but cfexecute seems to have a problem with the slash or spaces or something. I've tried double quotes (error) and single quotes around the argument (no change). Any help would be appreciated.

cfoutput produces: CN=Blow\, Joe L,OU=Employees,DC=xx,DC=xxxx,DC=com

cfexecute  produces: Payne\ CN

<cfexecute name="moveUser.bat" arguments="'#userDN#'" timeOut="10"></cfexecute>


This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
January 27, 2010

What does moveUser.bat do (show the code, if possible) and how does userDN look like?

MortalAuthor
Participant
January 29, 2010

1st line logs to a file, 2nd line renames the user's home folder, 3rd line runs the vbs where I update the user's AD attributes. Both scrips work perfectly when run by hand but because the UserDN is not complete from cfexcute it fails.

echo %date% %1 >> C:\moveUser.log

Move %1 %1_DISABLED_%date%

cscript.exe C:\ColdFusion\Script\updateUser.vbs %1