Thanks M!ike. I tried

<cfexecute name="c:\winnt\system32\cscript.exe" 
arguments="d:\photos\brightness.vbs 10" timeout="10"></cfexecute>

and that worked great.

Any other reason you might do a batch file instead of this?

Ph!l


----- Original Message ----- 
From: "Dawson, Michael" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Monday, May 15, 2006 4:49 PM
Subject: RE: CFExecute in CF5 - trying to run VBS


|I would put the commands in a batch file, then use CFEXECUTE to run the
| batch file.
| 
| Also, I didn't know you could run a vbs file from command.com.
| 
| I usually use cscript to run vbs files.
| 
| M!ke
| 
| -----Original Message-----
| From: Philip K. Dunn [mailto:[EMAIL PROTECTED] 
| Sent: Monday, May 15, 2006 4:08 PM
| To: CF-Talk
| Subject: CFExecute in CF5 - trying to run VBS
| 
| I try this
| 
| <cfexecute timeout="10" name="d:\photos\brightness.vbs"
| arguments="10"></cfexecute> I get NT error 193.
| 
| <cfexecute timeout="10" name="d:\photos\brightness"
| arguments="10"></cfexecute> and get NT error 2.
| 
| This: <cfexecute timeout="10" name="c:\winnt\system32\command.com "
| arguments="d:\photos\brightness.vbs 10"></cfexecute> gets  Timeout
| period expired without completion.
| 
| The brightness.vbs runs fine from a command prompt as "brightness 10" or
| "brightness.vbs 10"
| 
| There are no tag restrictions
| 
| Suggestions? 
| 
| 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240585
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

Reply via email to