Re: cfexecute error

2005-11-30 Thread Michael Traher
Can you explain a bit more what you are trying to achieve?

I notice in docs for cfexecute that paths in examples all have \\ double
backslahes in windows paths.   not sure why but...


On 11/30/05, John Lucania [EMAIL PROTECTED] wrote:

 Can anyone help on this?

 An exception occurred when invoking an external process.
 The cause of this exception was that: java.io.IOException:
 CreateProcess: c:\copy.bat
 D:\Inetpub\WWWROOT\BBDatabase\QueryBatch.cfm 10.1.125.25 error=2.

 The error occurred in D:\Inetpub\WWWROOT\BBDatabase\BBBatch.cfm: line 1

 1 : cfexecute name=c:\copy.bat
 arguments=#ExpandPath('QueryBatch.cfm')# 10.1.125.25
 outputfile=c:\BBBatch.txt/cfexecute




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225660
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfexecute error

2005-11-30 Thread John Lucania
What I am trying to do is sending print jobs to a network printer as a
scheduled task.

jl

On 11/30/05, Michael Traher [EMAIL PROTECTED] wrote:
 Can you explain a bit more what you are trying to achieve?

 I notice in docs for cfexecute that paths in examples all have \\ double
 backslahes in windows paths.   not sure why but...


 On 11/30/05, John Lucania [EMAIL PROTECTED] wrote:
 
  Can anyone help on this?
 
  An exception occurred when invoking an external process.
  The cause of this exception was that: java.io.IOException:
  CreateProcess: c:\copy.bat
  D:\Inetpub\WWWROOT\BBDatabase\QueryBatch.cfm 10.1.125.25 error=2.
 
  The error occurred in D:\Inetpub\WWWROOT\BBDatabase\BBBatch.cfm: line 1
 
  1 : cfexecute name=c:\copy.bat
  arguments=#ExpandPath('QueryBatch.cfm')# 10.1.125.25
  outputfile=c:\BBBatch.txt/cfexecute
 
 


 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225692
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfexecute error

2005-11-29 Thread John Lucania
Can anyone help on this?

An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException:
CreateProcess: c:\copy.bat
D:\Inetpub\WWWROOT\BBDatabase\QueryBatch.cfm 10.1.125.25 error=2.

The error occurred in D:\Inetpub\WWWROOT\BBDatabase\BBBatch.cfm: line 1

1 : cfexecute name=c:\copy.bat
arguments=#ExpandPath('QueryBatch.cfm')# 10.1.125.25
outputfile=c:\BBBatch.txt/cfexecute
2 :

*QueryBatch.cfm is below: **

cfquery name=GetQryList datasource=BloodBank
select *
from PTBB
where len(MRN) = 7
order by Lname
/cfquery

table border=0 align=center
  tr
td colspan=6
  div align=centerMarian, this is a test. Please let me know if you got
this one! Thank you, Daniel /div
/td
  /tr
  tr
td bgcolor=CC
  div align=centerbName/b/div
/td
td bgcolor=CC
  div align=centerbABO/b/div
/td
td bgcolor=CC
  div align=centerbRH/b/div
/td
td bgcolor=CC
  div align=centerbAntigen/b/div
/td
td bgcolor=CC
  div align=centerbAntibody/b/div
/td
  /tr
  cfoutput query=GetQryList
tr
  td bgcolor=FF#LName#, #FName#/td
  td bgcolor=FF#ABO#/td
  td bgcolor=FF#RH#/td
  td bgcolor=FF#Antigen#/td
  td bgcolor=FF#Antibody#/td
/tr
  /cfoutput
/table
strong
div align=centercfoutputfont
color=99#GetQryList.RecordCount#/font/cfoutputfont
color=99
  Records Found/font/div
/strong

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225658
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFExecute Error.... Silly Java.....

2005-08-29 Thread Brian Polackoff
Trying to use cfexecute to change an AD password.  Works no problem from the
command prompt however when I load the page it get:

 

The cause of this exception was that: java.io.IOException: CreateProcess:
net user.exe MYUSERNAME MYPASSWORD /domain error=2 

 

-  or - 

-   

The cause of this exception was that: java.io.IOException: CreateProcess:
net user.exe MYUSERNAME MYPASSWORD /domain error=3

 

My code is:

 

cfset args = #Trim(MYUSERNAME)# #Trim(MYPASSWORD)# /domain

 

cfsavecontent variable=results

cfexecute name=net user.exe arguments=#args# timeout=10
/

/cfsavecontent

 

I have verified that the account that runs the Coldfusion service has the
appropriate rights to access net user.exe and verified that the cfexecute
tag is not disabled in cfadmin.

 

Any Ideas would be greatly appreciated.

 

Thanks,
Brian R. Polackoff

 

Coldfusion Version 6.1

 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216659
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54