echo on
rem
rem     DBLPQ.BAT - Sample batch file for LPQUE statement Windows 
rem     / NT systems.  Copy the "DBLPQ.BAT" file to your DBLDIR 
rem     directory and set DBLOPT 22.  Remark out, edit, or delete
rem     those samples that do not apply to your system.
rem
rem     LPQUE options are emitted as batch file arguments to
rem     DBLPQ.BAT as follows:
rem     __________      ______________          _______
rem
rem     Batch File      LPQUE                   Default
rem     Argument        Option                  Value
rem     __________      ______________          _______
rem
rem     %1              filename (a)
rem     %2              lpnum    (d)            0
rem     %3              copies   (d)            1
rem     %4              forms    (a)            NOFORMS
rem     %5              align    (1/0)          0
rem     %6              delete   (1/0)          0
rem     __________      ______________          _______
rem
if .%2. == .1.  goto que_1
rem
rem                    - - Sample for NT Workstations - -
rem
:que_0
print %1 /d:\\NTServer\HP-Laseerrjet
goto done
rem
rem             - - Sample for Windows 95/98/ME Workstations - -
rem
:que_1
print /d:\\Microflex\HP920 %1
if .%6. == .1.  goto delete
goto done
rem
rem              - - Sample for Windows 2000, XP, Vista & Win7 Workstations - -
rem
:que_2
print /d:\\Server\HP4000 %1
goto done
rem
rem              - - Sample for Windows Vista Workstations ** - -
rem
:que_2
type %1 > \\Server\HP4000
goto done
rem

:delete
del %1
goto done
rem
rem
rem     In all cases %1 is the filename.  When used, /d: means the
rem     variable following is a device, followed by two back slashes,
rem     the server name, a backslash, and the printer name.
rem
:done
rem pause


rem ** NOTE:
rem Meanwhile, Print.exe does not work in Windows Server 2008/Vista due to
rem a SMB2 protocol. You may disable SMB2 on Windows 2008 server to test again.
rem
rem To disable SMB 2.0 for Windows Vista or Windows Server 2008 clients:
rem sc config lanmanworkstation depend= bowser/mrxsmb10/nsi 
rem sc config mrxsmb20 start= disabled
rem Provided the commands to enable SMB 2 if required later
rem
rem To enable SMB 2.0 for Windows Vista / Server 2008 clients:
rem sc config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
rem sc config mrxsmb20 start= auto

 

