Thanks for the suggestion. I changed the account to "Administrator" and
still got a timeout error with the following code.
<CFEXECUTE NAME="C:\WINDOWS\system32\cmd.exe"
ARGUMENTS="copy C:\Inetpub\wwwroot\CFDEV\barcode\zebra.txt LPT1"
TIMEOUT="5"></CFEXECUTE>
Any other suggestions???
Dave Cordes
Senior ColdFusion Developer
636-939-1081 (H)
636-578-4235 (M)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:cf-talk@;linenoize.com]
Sent: Wednesday, October 23, 2002 10:46 PM
To: CF-Talk
Subject: Re: Using CFEXECUTE from a Web Browser???
"Local System Account" probably DOES NOT have the proper permissions. Try
(temporarily) setting ColdFusion to run as "Administrator" and see if that
solves your problem. If it does, then you'll want to create a "ColdFusion"
(or similar) account and set it up that way. I do NOT recommend running the
ColdFusion server as "Administrator" for obvious reasons... just as a test
to see if it's a permissions issue or not.
-Novak
----- Original Message -----
From: "Dave Cordes" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 8:28 PM
Subject: RE: Using CFEXECUTE from a Web Browser???
> I checked and ColdFusion is logged in as the "Local System Account" so I
> don't think it could be a permissions problem. I found some other posts on
> the ColdFusion Support Forums that would lead me to believe that your
second
> point about timing out is the cause. Here is the link that talks about it.
I
> read somewhere that Macromedia has no current plans to fix it so that's
not
> a good sign.
>
>
http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=7&threadid=
> 310075
>
> Dave Cordes
> Senior ColdFusion Developer
> 636-939-1081 (H)
> 636-578-4235 (M)
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:cf-talk@;linenoize.com]
> Sent: Wednesday, October 23, 2002 8:37 PM
> To: CF-Talk
> Subject: Re: Using CFEXECUTE from a Web Browser???
>
>
> It's quite likely a permissions problem. But another thing you can try is
> to put the commands in a .BAT file and then execute the .BAT file.
>
> Also note... I've experienced some "weirdness" with the CFEXECUTE command
in
> CFMX. I wish I could explain it better than that but the main problem I
was
> having was that some programs (which worked in CF5) would not execute in
> CFMX. I also noticed that the "timeout" attribute was causing the program
> to take that long to execute rather than executing and then returning back
> to the calling template. I'm not sure if this was addressed in the
updater
> patch or not. I haven't tested it since.
>
> -Novak
>
> ----- Original Message -----
> From: "Dave Cordes" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 23, 2002 5:00 PM
> Subject: Using CFEXECUTE from a Web Browser???
>
>
> > Has anyone ever tried to use CFEXECUTE to execute a command?
> >
> > <CFEXECUTE NAME="C:\WINDOWS\system32\cmd.exe"
> > ARGUMENTS="copy zebra.txt LPT1"
> > TIMEOUT="5"></CFEXECUTE>
> >
> > We're trying to print barcodes from a Web browser and have been having
> lots
> > of problems. All it does is times out.
> >
> > I can go to a command prompt and type in "copy zebra.txt LPT1" and it
> works
> > fine.
> >
> > How can I do this using CFEXECUTE?
> >
> > Dave Cordes
> > Senior ColdFusion Developer
> > 636-939-1081 (H)
> > 636-578-4235 (M)
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm