Bushy wrote:
> Where do I put the "print" and \\SERVERNAME\PRINTERNAME\ for
> 
> c:\winnt\system32\net.exe print \\SERVERNAME\PRINTERNAME

If servername is not the local server, you need to make sure CF runs 
under a domain account, not the localsystem account. Then use:

<cfsavecontent variable="printResult">
     <cfexecute name="c:\winnt\system32\net.exe"
        arguments="print \\SERVERNAME\PRINTERNAME"
        timeOut="60">
     </cfexecute>
</cfsavecontent>

<cfoutput>#queue#</cfoutput>

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to