Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFEXECUTE query

Status
Not open for further replies.

PetersWeb

Programmer
Apr 26, 2000
29
AU
Hi,

I'm attempting to unzip a file on the webserver using a Winzip patch "WZUNZIP". It works perfectly in a batch file when running it from the command line on the web server.

I am required to run it it as a CFSCHEDULE but have found that the path name is a problem:

D:\program files\winzip\wzunzip

This will only run on the command line enclosed in quotes - ie, "D:\program files\winzip\wzunzip" due to the space in the directory name, 'program files'. I've been unable to find a way to do this using CFEXECUTE - short of installing Winzip into a single-word directory, does anyone have any ideas?

Peter Toby
webmaster@petertoby.com.au
My site is under construction but getting better!
 
did you try with progra~1 instead of program files ?
 
Create a batch file in a separate directory(that has no spaces in it) and run it like this:

<CFEXECUTE
NAME=&quot;C:\Temp\unzip.bat&quot;
TIMEOUT=&quot;20&quot;>
</CFEXECUTE>

neamtu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top