Marcus Goedeker wrote:
I have a very simple batch file that i can run fine on its own, but can't
seem to get it to work using cfexecute. I used cfexecute a couple years ago
and had no problems, but i can't seem to get it to work with this particular
batch file. The cfexecute code is very
Try:
cfexecute name=c:\windows\system32\cmd.exe
arguments=c:\test.bat
outputfile=c:\output.txt /
Jochem
Thanks for the reply. I tried it and it doesn't work. It doesn't output
anything in the file either.
Marcus
Is CF logged in as a service or a user?
-Original Message-
From: Marcus Goedeker [mailto:[EMAIL PROTECTED]
Sent: 12 August 2008 14:42
To: CF-Talk
Subject: Re: cfexecute batch file not working
Try:
cfexecute name=c:\windows\system32\cmd.exe
arguments=c:\test.bat
outputfile=c
I have a very simple batch file
Don't forget that the default directory used by the bat file is not the
one the bat file resides,
but the on from which it is run. In this occurrence, it is the CF directory.
Then you may have to set the working directory from inside the bat file
itself.
--
Is CF logged in as a service or a user?
Thanks for the reply. I tried it and it doesn't work. It doesn't output
anything in the file either.
Marcus
A service.
~|
Adobe® ColdFusion® 8 software 8 is the most important and
I have a very simple batch file
Don't forget that the default directory used by the bat file is not the
one the bat file resides,
but the on from which it is run. In this occurrence, it is the CF directory.
Then you may have to set the working directory from inside the bat file
itself.
--
Did you try it logged in as Admin?
-Original Message-
From: Marcus Goedeker [mailto:[EMAIL PROTECTED]
Sent: 12 August 2008 15:25
To: CF-Talk
Subject: Re: cfexecute batch file not working
Is CF logged in as a service or a user?
Thanks for the reply. I tried it and it doesn't work
Did you try it logged in as Admin?
A service.
Yes, i am the admin.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
One thing i have noticed is that the output file has a line break before and
after the actual command output. I don't think this would make a difference,
but I guess you never know.
~|
Adobe® ColdFusion® 8 software 8 is the
Umm, just to be clear, I meant with Coldfusion logged in as Administrator,
not sure if it will help but it certainly might.
-Original Message-
From: Marcus Goedeker [mailto:[EMAIL PROTECTED]
Sent: 12 August 2008 16:20
To: CF-Talk
Subject: Re: cfexecute batch file not working
Did you
have you tried setting a timeout for the cfexecute
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
I have a very simple batch file that i can run fine on its own, but can't seem
to get it to work using cfexecute. I used cfexecute a couple years ago and had
no problems, but i can't seem to get it to work with this particular batch
file. The cfexecute code is very simple...cfexecute
12 matches
Mail list logo