• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFExecute and Special Chars (I think)

New Here ,
Jan 27, 2010 Jan 27, 2010

Copy link to clipboard

Copied

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>


TOPICS
Advanced techniques

Views

311

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2010 Jan 27, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 29, 2010 Jan 29, 2010

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation