Hello,
I am using the <cfexecute> tag for the first time and I'm having trouble getting the correct result. I don't get any error message so figuring out what I'm doing wrong has been more than difficult. We are running CFMX 7.0 on Windows 2003.
We have a batch file for encrypting an xml file that works fine from the command prompt. However, we need this file to execute from a CF page. The code looks like the item below:
<cfexecute name = "D:\inetpub\arguments = #arguments#
outputFile = "D:\inetpub\timeout = "5">
</cfexecute>
The arguments include the ecryption key to use and the name of the file to encrypt. Both the key and the file name are correct when I output those values.
The end result of this process is that the encrypted file is created and has the correct name (e.g. myfile.xml.pgp, but it contains no encryption information - i.e., it is basically an empty file and useless.
I don't know if this is a ColdFusion problem or not. Since the batch file runs okay on its own, I'm figuring it is the <cfexecute> that is at fault. Since there is no error message and the batch file produces an output file rather than failing as it would if passed an incorrect encryption key or a non-existent xml file to encrypt, I am at a loss to know where to start to try and fix this problem.
I've seen lots of other posts about <cfexecute> problems that seem similar to this one, but none of the suggested solutions have any effect on this one or they don't seem to apply. Changing the timeout value has no effect. Checking server permissions doesn't show any problems, etc.
Any suggestions about where to look next would be appreciated. Thanks.
I am using the <cfexecute> tag for the first time and I'm having trouble getting the correct result. I don't get any error message so figuring out what I'm doing wrong has been more than difficult. We are running CFMX 7.0 on Windows 2003.
We have a batch file for encrypting an xml file that works fine from the command prompt. However, we need this file to execute from a CF page. The code looks like the item below:
<cfexecute name = "D:\inetpub\arguments = #arguments#
outputFile = "D:\inetpub\timeout = "5">
</cfexecute>
The arguments include the ecryption key to use and the name of the file to encrypt. Both the key and the file name are correct when I output those values.
The end result of this process is that the encrypted file is created and has the correct name (e.g. myfile.xml.pgp, but it contains no encryption information - i.e., it is basically an empty file and useless.
I don't know if this is a ColdFusion problem or not. Since the batch file runs okay on its own, I'm figuring it is the <cfexecute> that is at fault. Since there is no error message and the batch file produces an output file rather than failing as it would if passed an incorrect encryption key or a non-existent xml file to encrypt, I am at a loss to know where to start to try and fix this problem.
I've seen lots of other posts about <cfexecute> problems that seem similar to this one, but none of the suggested solutions have any effect on this one or they don't seem to apply. Changing the timeout value has no effect. Checking server permissions doesn't show any problems, etc.
Any suggestions about where to look next would be appreciated. Thanks.