I have seen questionable results using these commands caused by specific network related setup problems... be carefull if you decide to go this route.
For example, if a printer server captures a network printer called LPT1...
*---- The Code Example
*-- printer options
m_printer_port=''
do form get_printer_port to jget
*--- LPT1.DOS (local printer) LPT1, LPT2, LPT3(captured printer) etc...
*--- whatever printer ports you want available
if jget='OK' && ok
jline= 'copy file '+jfile+ ' to '+ m_printer_port
&jline
endif
>What VFP command or function should I use
>to send a text file (or any type of file) directly to printer?
>Thank you in advance.
Thanks,
Stacy
Black Mountain Software, Inc.