Is it possible you created the batch file on an encrypted volume that 
only your use account has access to?

. . . .  .

When you run the batch file yourself, you apparently have sufficient 
rights to do so. The user account that CF is running as does not.

You can test this by changing CF to run as your user account since you 
know that account has no issue running the batch file.

If it works, you should be able to adjust the CF service's group 
memberships to match your account's or change the CF service to run as a 
user with sufficient privileges.


safo kaskas wrote:
> @echo off
> CLS
> set myfile=C:\D_Drive\sft\lib0109.zip.pgp
> set pkey="lib123456"
> set sento="-o C:\D_Drive\sft\lib0109.zip"
> set mypgppath="C:\D_Drive\sft\pgp.exe"
> call %mypgppath% +force %myfile% -z %pkey% %sentto%
>
> using above batch file works fine
>
> using it from cf 
>
> <cfexecute name="c:\sft\pgptest.bat" outputfile="c:\sft\log.txt"></cfexecute> 
>
> gives 
>
> File is encrypted. Secret key is required to read it. You do not have the 
> secret key needed to decrypt this file. 
>
> any ideas???? 
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329781
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to