Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cfexecute problem

Posted on 2003-12-01
3
Medium Priority
?
2,007 Views
Last Modified: 2013-12-20
hi, can anyone decipher what may be the problem with the error code below?  The problem is coming when trying to call a batch file, but the whole objective is to dynamically zip files while retaining their file structures.  If this is not the right approach, can you please give an example/suggestion of how best to do it?

-tia

: An exception occurred when invoking an external process.  
The cause of this exception was that: java.io.IOException: CreateProcess: 'c:\program files\winzip\wzzip' -rP 'D:\WebSites\IETM_DevSite\tempZips\component_20031201_153721.zip' 'D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*' error=2.  
 
The error occurred in D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm: line 22
 
20 :       <!--- <cfx_ZipMan action="add" zipfile="#zipFile#" input_files="#lstFiles#"> --->
21 :       <cfexecute name="'c:\program files\winzip\wzzip'"
22 :         arguments="-rP '#zipFile#' 'D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*'" timeOut="10">
23 :       </cfexecute>
24 :       <cfexecute name="D:\WebSites\IETM_DevSite\dnldComponents\execWinZip.bat" ></cfexecute>

 

--------------------------------------------------------------------------------
 
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.

 
Browser   Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Remote Address   192.168.74.90
Referrer    
Date/Time   01-Dec-03 03:37 PM
 
Stack Trace (click to expand)  
at cfgetFile2ecfm2018900984.runPage(D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm:22) at cfgetFile2ecfm2018900984.runPage(D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm:22)


java.io.IOException: CreateProcess: &apos;c:\program files\winzip\wzzip&apos; -rP &apos;D:\WebSites\IETM_DevSite\tempZips\component_20031201_153721.zip&apos; &apos;D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*&apos; error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Win32Process.java:66)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(Runtime.java:566)
      at java.lang.Runtime.exec(Runtime.java:428)
      at java.lang.Runtime.exec(Runtime.java:364)
      at java.lang.Runtime.exec(Runtime.java:326)
      at coldfusion.tagext.lang.ExecuteTag.doStartTag(ExecuteTag.java:138)
      at cfgetFile2ecfm2018900984.runPage(D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm:22)
      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
      at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.CfmServlet.service(CfmServlet.java:105)
      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

 
0
Comment
Question by:liltyga
3 Comments
 
LVL 10

Expert Comment

by:Mause
ID: 9853091
Hi there,

Does your attribute NAME start (and end) width an " and a ' ???? if so remove the ' at the begin and end like this:

<cfexecute name="c:\program files\winzip\wzzip" arguments="-rP '#zipFile#' 'D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*'" timeOut="10">

Mause
0
 
LVL 17

Accepted Solution

by:
anandkp earned 375 total points
ID: 9855861
0
 

Author Comment

by:liltyga
ID: 9858184
Thanks for the post references Anand - since they pointed me in the right direction, I'm accepting your comments as the answer.  The solution I found was to use the ZipFileNew UDF, which is free and can be found here: http://www.cflib.org/udf.cfm?id=744&enable=1  (Thanks to Nathan Dintenfass for the code contribution!)

Later,
liltyga
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question