My suggestion would be to create a bat file that does most of the work and then pass parmaters to the bat file using CFEXECUTE. If you can get the bat file to work alone, but can't get CFEXECUTE to work with it, I can help you from there. - tleish
Parameters are passed to a bat file through a list format, I believe the delimiter can either be a comma or a space. Then you capture the argument based on it's position in the parameter list with a % in front of it (%1,%2,%3...). The following code below will ping yahoo.com and tek-tips.com and output the results to the screen.
=== START TEST.BAT FILE EXAMPLE ===
REM Ping 2 websites
ping %1
ping %2 === END TEST.BAT FILE EXAMPLE ===
=== START CF CODE EXAMPLE ===
[COLOR=000080]<pre>[/color]
[COLOR=000080]</pre>[/color] === END CF CODE EXAMPLE ===
One suggestion I would make, if you are dealing with modification of files in the bat file, I strongly suggest using a <CFLOCK> around the <CFEXECUTE> tag.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.