I also had trouble with the <cfexecute> tag on a little exe that we
developed. What I found was that the system executes from the
c:/winnt/system32 folder. So in your batch file add some type of "cd" to
the correct directory and then begin the execution.
For example:
cd C:/
c:/batchfile1.cmd
Hope that helps!
Derek Hamilton
Systems Developer
Digital Gear, Inc.
on 1/17/01 9:27 AM, the esteemed Alexander Stepanov at
[EMAIL PROTECTED] postulated:
>
> Hi,
>
> I need to run some batch files from CF (antivirus check for uploaded
> files, right after uploading). The first intention was is to use
> <CFEXECUTE> tag. But it doesn't work as (I guess) it's neccessary to run shell
> int-r cmd.exe
> (f.e. "cmd.exe /c batchfile1.cmd"). Did anybody run batch files on WinNT
> from CFserver pages?
>
> I will appriciate any hint/advise.
>
> TIA, Alexander
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com