Is there a particular error message you're getting?

Your cfexecute call is just like running a dos shell from windows and
entering cd \ to get to the root on your cf server, so any commands you're
going to run will be relative from probably c:\ If you want to maintain the
.bat file in a particular file structure instead of dropping it in the root,
you'll have to execute it using an absolute file path, or add the path to
the directory where it resides to your path declaration in your autoexec.bat

If both servers are on a network, it's possible you could create a mapped
drive to the target/production server, run the cf server service as a user
with rights to that mapped drive and use <cffile> to copy content to your
target/production server. This would maintain your publishing application
within CF without having to shell out to DOS.

Of course, there's always cfftp and cfhttp although they're more involved
solutions and require additional setup on your target server which may or
may not be viable.


hth


S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

> Good morning all,

> We are trying to execute a dos batch file with cfexecute and can't get it
> to run. The batch file runs fine when we execute it directly, but
> cfexecute
> doesn't seem to be able to.  Has anyone had any experience with this type
> of setup?

> The ultimate goal is to allow content admins to publish files from the
> development server to the production server. We setup a batch file that
> will work great if we can get cfexecute to work.  Otherwise, does anyone
> else have any ideas about this type of procedure?

> Thanks

> Loyd Campbell

> Bank One


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to