oi Critz!!!!!!...I got it to work. At 11:39 AM 6/12/2002 -0400, you wrote: >oi phumes1!! > >uh.... why not just create a script that goes thru and deletes the files >later >in the day or such or could you push the file for viewing using cfcontent? > > >-- >Critz >Certified Adv. ColdFusion Developer > >Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion"> >------------------------------------ >Wednesday, June 12, 2002, 11:32:29 AM, you wrote: > >p> Hi, > >p> I have a problem. I'm running a executable using <cfexecute and everything >p> is working great. The program creates an external file which has the >p> display from the screen if run from the command prompt. > >p> I then use a <iframe and read in the external file created from the >executable. > >p> This file is not required so then I do a <cffile and delete the temporary >p> file. If I do this then I get an error from the <iframe. >p> If I comment out the delete then it works OK. > >p> Why? > >p> How can I get around this problem? > >p> Here is my code: > >p> <cfparam name="dir" default="#TheFolder#"> >p> <cfdirectory action="LIST" directory="#dir#" name="dirlist" sort="name"> > >p> <cfoutput> > >p> <cfset sr = #ListGetAt(FileName,1,'.')#> >p> <cfset CreateBatch = >p> "setlocal#strCR##LCase(ListGetAt(TheFolder,1,':'))#:#strCR#cd >p> #TheFolder##strCR##ComposeExe# >p> #TheFolder#\#LCase(ListGetAt(FileName,1,'.'))# printer"> >p> <cffile action="WRITE" >p> file="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat" >p> output="#CreateBatch#" addnewline="Yes"> > >p> <cfexecute name="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat" >p> >outputfile="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog" >p> timeOut="1000"> >p> </cfexecute> > >p> <!--- _.TMP FILE IS GENERATED BY THE EXECUTABLE FILE ---> >p> <iframe src="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp" >p> name="LogFile" >p> id="LogFile" >p> width="100%" >p> height="320" >p> align="middle" >p> class="dirlinks"> >p> </iframe> > >p> <cffile action="DELETE" >p> file="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat"> > >p> <cffile action="DELETE" >p> file="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp"> > >p> <cffile action="DELETE" >p> file="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog"> > >p> </cfoutput> > >p> > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

