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

cfexecute with multiple arguments

Community Beginner ,
Feb 09, 2013 Feb 09, 2013

Hello,

I'm trying to encrypt a file with CFEXECUTE, using OpenSSL. When I run the code in the command prompt, it works fine and the new encrypted file appears in the correct folder. Also, I can run CFEXECUTE with OpenSSL with just one argument and it works fine. ie arguments="version". But the following does not return a value, nor does it create the new folder:

<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"

    arguments = "aes-256-cbc -a -salt -in ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets.txt"" -out ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets2.txt"""

    variable = "result"

    timeout = "5">

</cfexecute>

<cfdump var="#result#">

Any ideas?

Pete

1.3K
Translate
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 Beginner ,
Feb 11, 2013 Feb 11, 2013
LATEST

BYW,

This runs fine:

<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"

    arguments = "list-standard-commands"

    variable = "result"

    timeout = "5">

</cfexecute>

<cfdump var="#result#">

and so does this:

<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"

    arguments = "version"

    variable = "result"

    timeout = "5">

</cfexecute>

<cfdump var="#result#">

Maybe someone has a multiple argument example of CFEXECUTE that runs fine.

I'd be interested to know.

Pete

Translate
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