wolla! got it to work finally, thanks Craig.

>Error number 2 = Can't find file. Try using the full path of the batch
>file.
>
> -----Original Message-----
> From: ColdFusion Programmer [mailto:[EMAIL PROTECTED]
>
> Sent: 15 October 2003 11:05
> To: CF-Talk
> Subject: Re:CFFILE Question
>
>
> Craig, I don't why I get an error when I run the script on the
>browser. Here is my code:
>
> <cfexecute name="supportSearches.bat" />
>
> The error I get is:
>
> An exception occurred when invoking an external process.  
> The cause of this exception was that: java.io.IOException:
>CreateProcess: supportSearches.bat error=2.  
>   
> The error occurred in D:\CFusionMX\wwwroot\logReport\Search.cfm:
>line
>
>
> <cfexecute name="supportSearches.bat" />
>
> When I run the bat file from the command prompt it works fine,
>but when get an error when I run it using cfexecute. I'm using CFMX
>
> >Nope, create a batch file and execute that.
> >
> >Contents of mybatchfile.bat
> >------------------------------------
> >copy D:\CFusionMX\wwwroot\logReport\SupportiSearches*.log
> >D:\CFusionMX\wwwroot\logReport\destination.log /Y
> >
> >
> >(the /Y stops prompting to overwrite existing files)
> >
> >Then..
> >
> ><cfexecute name="mybatchfile.bat" />
> >
> >from the cf template.
> >
> >Craig.
> >
> >-----Original Message-----
> >From: ColdFusion Programmer
>[mailto:[EMAIL PROTECTED]
> >Sent: 15 October 2003 10:49
> >To: CF-Talk
> >Subject: Re:CFFILE Question
> >
> >
> >I've tried doing this and I get an error:
> >
> ><cfexecute name="copy
> >D:\CFusionMX\wwwroot\logReport\SupportiSearches*.log
>destination.log"
> >timeout="5"></cfexecute>
> >
> >>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