Keep in mind if you do that, it won't be able to provide you success or failure in the cf template.

If you want to view the results of the .bat file in the calling cf template, you can set a timeout and use the new variable attribute for cfexecute (starting in MX 6.1) or surround your cfexecute with cfsavecontent to capture the output if you are not using MX 6.1.

- Calvin
  ----- Original Message -----
  From: Craig Dudley
  To: CF-Talk
  Sent: Wednesday, October 15, 2003 5:36 AM
  Subject: RE: CFFILE Question

  If you want the cf template to finish quickly you could always exclude
  timeout value from cfexecute aswell, cf then won't wait for any console
  output.

  <cfexecute name="mybatchfile.bat" />

  Should do the trick.

  -----Original Message-----
  From: ColdFusion Programmer [mailto:[EMAIL PROTECTED]
  Sent: 15 October 2003 10:34
  To: CF-Talk
  Subject: Re:CFFILE Question

  I was hoping somebody could show me how to do this. Thanks

  >If the files are big this will eat memory .
  >
  >Consider using the underlying OS to dfo this sort of thing.
  >
  >use cfexecute to run a batch file for instance, e.g.
  >
  >COPY SupportiSearches*.log destinationfile.log
  >
  >That should do exactly what you want, very, very quickly!
  >
  >-----Original Message-----
  >From: Allan Clarke [mailto:[EMAIL PROTECTED]
  >Sent: 15 October 2003 10:12
  >To: CF-Talk
  >Subject: CFFILE Question
  >
  >
  >Hello Everybody,
  >
  >I want to see the contents of a directory on the
  >server. I know there is a function in CF to do this,
  >GetTemplatePath, cfdirectory or something (not sure).
  >The directory path will not change. I want to first
  >get to the directory and then find all log files in
  >the directory beginning with "SupportiSearches". There
  >are going to be more than one file with that name. The
  >idea is to append the contents of log files into one
  >log file.
  >
  >To give you a better understanding, take for instance
  >there are 2 log files under the directory called:
  >Support2003-09.log and Support2003-08.log. I want to
  >read the contents stored in these files, both files
  >are identical in that the content is comma separated
  >and both files have the same no of columns. I want to
  >read the contents of the files using cffile and append
  >the contents stored in the files in one file. I hope
  >this is making sense. Can somebody please show me how
  >to do this.
  >
  >Best Regards
  >Allan
  >
  >__________________________________
  >Do you Yahoo!?
  >The New Yahoo! Shopping - with improved product search
  >http://shopping.yahoo.com
  >
  >


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to