From: DJ Jamba on 22 Dec 2006 05:38 i searched hi and low to see if anyone can get this working and all i found was other developers having exactly the same problem. First things first: I have a Winzip Pro 11 licence. I dont want to use java.util.zip as there no password/potection or encryption methods I dont want to use someone else's CFX etc as none of them allow encrypting with 256 AES or password protection. I do want to know if there is an expert out there that can successfully see me through a cfexecute calling wzzip, without the process hanging?? <cfexecute name="c:\progra~1\winzip\wzzip.exe /c E:\temp\test.zip E:\temp\test.txt" timeout="10" outputfile="E:\temp\dosoutput.txt" /> Starts a winzip process that never completes. This works fine (either dumping on screen or to a text file): <cfexecute name="cmd /c set" timeout="10" /> I'm wondering if the path to 'wzzip' should be added to system path so we can do this: <cfexecute name="wzzip /c E:\temp\test.zip E:\temp\test.txt" timeout="10" outputfile="E:\temp\dosoutput.txt" /> otherwise - HHHEEELLLPPPPP..
From: DJ Jamba on 22 Dec 2006 08:22 ok here's somethin interesting (actually it's odd): look at line 467 - after the zip file is created - it is immediately deleted (there is no delete switch in the command) wzzip e:\temp.zip e:\temp.txt why would it do that? 455 7:32:50 PM WZZIP.EXE:5012 CLOSE E:\temp\ SUCCESS 456 7:32:50 PM WZZIP.EXE:5012 QUERY INFORMATION E:\temp\test.txt SUCCESS Attributes: N 457 7:32:50 PM WZZIP.EXE:5012 CREATE E:\temp\test.zip SUCCESS Options: OverwriteIf Access: 00120196 458 7:32:50 PM inetinfo.exe:2584 DIRECTORY E:\webs\esns.test.slb.com SUCCESS Change Notify 459 7:32:50 PM explorer.exe:4816 DIRECTORY E:\temp SUCCESS Change Notify 460 7:32:50 PM WZZIP.EXE:5012 CLOSE E:\temp\test.zip SUCCESS 461 7:32:50 PM WZZIP.EXE:5012 OPEN E:\temp\ SUCCESS Options: Open Directory Access: 00100001 462 7:32:50 PM WZZIP.EXE:5012 DIRECTORY E:\temp\ SUCCESS FileBothDirectoryInformation: test.zip 463 7:32:50 PM WZZIP.EXE:5012 CLOSE E:\temp\ SUCCESS 464 7:32:50 PM inetinfo.exe:2584 DIRECTORY E:\webs\esns.test.slb.com SUCCESS Change Notify 465 7:32:50 PM WZZIP.EXE:5012 OPEN E:\temp\test.zip SUCCESS Options: Open Access: 00010080 466 7:32:50 PM WZZIP.EXE:5012 QUERY INFORMATION E:\temp\test.zip SUCCESS FileAttributeTagInformation 467 7:32:50 PM WZZIP.EXE:5012 DELETE E:\temp\test.zip SUCCESS 468 7:32:50 PM WZZIP.EXE:5012 CLOSE E:\temp\test.zip SUCCESS 469 7:32:50 PM explorer.exe:4816 DIRECTORY E:\temp Change Notify 470 7:32:50 PM WZZIP.EXE:5012 QUERY INFORMATION E:\temp\_Za04892 NOT FOUND Attributes: Error 471 7:32:50 PM inetinfo.exe:2584 DIRECTORY E:\webs\esns.test.slb.com SUCCESS Change Notify 472 7:32:50 PM WZZIP.EXE:5012 OPEN E:\temp\_Za04892 SUCCESS Options: OpenIf Access: 00120196
From: DJ Jamba on 22 Dec 2006 10:46 ok - i figured it out. It is purely a permissions issue. I built a test page in classic asp and the zipping was successful. Processof elimination led me to find user IIS used to process asp pages had correct permission and the CF system user (even as part of the local admin group) did not...
|
Pages: 1 Prev: Anyone have an updated copy of ThreeSelectsRelated.cfm? Next: Coldfusion and WAP |