Re: cfexecute batch file not working

2008-08-12 Thread Jochem van Dieten
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 simple...cfexecute 
 name=C:\test.bat outputfile=C:\output.txt/cfexecute

Try:
cfexecute name=c:\windows\system32\cmd.exe
   arguments=c:\test.bat
   outputfile=c:\output.txt /

Jochem

~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310842
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfexecute batch file not working

2008-08-12 Thread Marcus Goedeker
 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 

~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310864
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfexecute batch file not working

2008-08-12 Thread Craig Dudley
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:\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 



~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310865
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute batch file not working

2008-08-12 Thread Claude Schneegans
  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.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310867
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute batch file not working

2008-08-12 Thread Marcus Goedeker
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 dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310868
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute batch file not working

2008-08-12 Thread Marcus Goedeker
 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.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.

If I run the output in the CF directory, it works also, so that doesn't seem to 
be the issue.

Thanks. 

~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310869
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfexecute batch file not working

2008-08-12 Thread Craig Dudley
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.  It doesn't output
anything in the file either.

Marcus

A service. 



~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310873
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute batch file not working

2008-08-12 Thread Marcus Goedeker
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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310876
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute batch file not working

2008-08-12 Thread Marcus Goedeker
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 most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310878
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfexecute batch file not working

2008-08-12 Thread Craig Dudley
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 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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310880
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute batch file not working

2008-08-12 Thread Chris Blackwell
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310900
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfexecute batch file not working

2008-08-11 Thread Marcus Goedeker
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 name=C:\test.bat 
outputfile=C:\output.txt/cfexecute

I can run the output in the command line also and it works perfectly.  For some 
reason coldfusion won't execute it. 

~|
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: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310775
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4