So how would that look in terms of code? If I go by the client server mode
then I think it might look something like this.
Where stymie = my machine name, Generic = printer name
<CFEXECUTE NAME="C:\WINDOWS\system32\cmd.exe"
ARGUMENTS="/c net use LPT1: \\stymie\Generic"
TIMEOUT="5">
</CFEXECUTE>
<CFEXECUTE NAME="C:\WINNT\system32\cmd.exe"
ARGUMENTS="/c copy D:\Inetpub\wwwroot\www.therussianstore\zebra.txt LPT1"
TIMEOUT="5">
</CFEXECUTE>
<CFEXECUTE NAME="C:\WINDOWS\system32\cmd.exe"
ARGUMENTS="/c net use LPT1: /delete"
TIMEOUT="5">
</CFEXECUTE>
This code obviously doesn't work because the server can't see \\stymie but
does it look like it would work if it could?
Dave Cordes
Senior ColdFusion Developer
636-939-1081 (H)
636-578-4235 (M)
-----Original Message-----
From: Dave Wilson [mailto:dave@;autosdirect2u.com]
Sent: Thursday, October 24, 2002 11:36 AM
To: CF-Talk
Subject: RE: Using CFEXECUTE from a Web Browser???
Could you give me an example of how you used ZPL to send to a local client
printer?
Have a look here Dave
http://pigtail.net/LRP/printsrv/console.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm