The next two things I would try are to execute a .bat file using
cfexecute in another directory to see if CF is just having problems
with cfexecute, period, and if you are able to run a bat file that
does something like "del myfile.txt", try putting the bat file you
really want to execute in that directory.

It seems to me that the most likely scenarios are some combination of:

CF can't execute a bat file in that directory because it doesn't have permission
CF really can't see that directory for some reason but it could
execute that file in another directory
CF is borked somehow and can't use cfexecute properly

Also, a note on your testing about running the .bat file from a cmd
window. CF is normally installed as a service running as System. There
are restrictions on that setup that aren't immediately obvious, like
not being able to interact with the Desktop (I believe) and doing
things over the network. You also have the option of running the
service as a named system account which would give CF more explicit
permissions as a real user. Those permissions are not necessarily
greater but they are more obvious and explicit.  What is CF running as
on your box?

Judah

On Mon, Mar 1, 2010 at 9:54 PM, Rick Faircloth <r...@whitestonemedia.com> wrote:
>
> I did try running the batch file from an "elevated cmd window".
>
> I ran cmd by typing cmd in the start field and using "ctrl-shift-enter".
>
> When I ran the batch file that way, it worked...at least from the
> command prompt.
>
> I also ran the batch file from a "non-elevated" cmd window, and
> it worked fine, too.
>
> All bat files are on a local drive.
>
> I tested one of the other bat files in the same directory and
> still got the error message:
>
> "The filename, directory name, or volume label syntax is incorrect."
>
> ???
>
>
>
> -----Original Message-----
> From: Judah McAuley [mailto:ju...@wiredotter.com]
> Sent: Tuesday, March 02, 2010 12:30 AM
> To: cf-talk
> Subject: Re: Why, oh why won't my batch file run via cfexecute?
>
>
> Was this working on Win 7 before or was it on a previous version of
> Windows, say XP? Because Windows 7 has permissions locked down much
> more tightly than XP did and I've seen issues reported as "can't find
> something" when it really means "I'm not allowed to look at it".
> Also, can you get any .bat files to run from cfexecute or is it only
> this bat file? Is this bat file on a local drive or a maped/unc drive?
>
> Judah
>
> On Mon, Mar 1, 2010 at 9:23 PM, Rick Faircloth <r...@whitestonemedia.com>
> wrote:
>>
>> Thanks for the tip, Dave, but it didn't help...
>>
>> I tried:
>>
>> <cfexecute name           =  "c:\windows\system32\cmd.exe"
>>           arguments      =  "/c
>>
> /#expandPath('/real_estate_data/hmls/10_hmls_batch_files/load_hmls_active_ph
>> otos.bat')#"
>>           timeout        =  "100"
>>           errorVariable  =  "errorVariable" />
>>
>> And, I tried leaving off the /c in the arguments...that didn't help.
>> I also tried hard coding the .bat path...no good.
>>
>> At least now I'm getting a different error, but can't figure out
>> what to change to make things work:
>>
>> errorVariable returns as "The filename, directory name, or volume label
>> syntax is incorrect."
>>
>> I can't figure out what that error is referencing.
>>
>> Did I use cmd.exe properly?
>> Are the arguments set up properly?
>>
>> I tried every variation I could think of.
>>
>> Rick
>>
>> -----Original Message-----
>> From: Dave Watts [mailto:dwa...@figleaf.com]
>> Sent: Monday, March 01, 2010 11:03 PM
>> To: cf-talk
>> Subject: Re: Why, oh why won't my batch file run via cfexecute?
>>
>>
>>> However, when I try to use.
>>>
>>> <cfexecute name               =
>>>
>>
> "#expandPath('/real_estate_data/hmls/10_hmls_batch_files/load_hmls_active_ph
>>> otos.bat')#"
>>>                        arguments     =  "/c"
>>>                        timeout           =  "5000">
>>> </cfexecute>
>>
>> What happens if you run cmd.exe using your batch file as an argument?
>>
>> Dave Watts, CTO, Fig Leaf Software
>> http://www.figleaf.com/
>> http://training.figleaf.com/
>>
>> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
>> GSA Schedule, and provides the highest caliber vendor-authorized
>> instruction at
>>
>>
>>
>>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331242
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to