Skip to main content
Known Participant
February 9, 2013
Question

cfexecute with multiple arguments

  • February 9, 2013
  • 1 reply
  • 1264 views

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

    This topic has been closed for replies.

    1 reply

    peterswanAuthor
    Known Participant
    February 11, 2013

    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