You can use:

IF INGROUP("DPF01") USE LPT3 "\\PRT_HO_SVR\DPF01" ENDIF

this is 1 line, ain't it?

_________________________
The Code is out there