Configure LOCALPORT to random file name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know I can create a localport for printing that prints to a specific
document name.
Is there a way to print to a random name, don't want to overwrite the
document.
 
Hi,

yes, there is a tricky way without any additional software.

Let all your settings to print to a specific document as they are,
but set the options "not to delete print jobs after printing" and disable
the "advanced
printing properties" in the same "advanced tab page" (Sorry I have a german
windows version and
don't know the exactly terms).
When you now print all print jobs are saved in differnt SPL-Files in the
Spooler-path (../system32/spool/printers) in
RAW-Format. You can later print, copy or ...
You can even set a different per printer spooler path in the registry to
differ them between the jobs from other printers.
Set the path in HKLM\System\CurrentControlSet\Control\Print\Printers\<Your
Printer>\SpoolDirectory
You have to restart the spooler or reboot.

Dieter
 
This worked well. I now have the documents accumulating in the alternate
spool location. Question, I have both #####.SPL and #####.SHD files created.

Do I process one or both?
 
I would need something that would allow me to send the SPL file to a
designated or default printer thru a command line.
 
Then use

copy /b <SPL-File> <Port>

examples:
copy /b 00003.spl LPT1: lokal
copy /b 00003.spl \\server\printershare remote

if you have trouble with lokal printers (USB,...) then share them and print
using this local share.

other programs may have commandline options to print files direkt to printer
(splview has problems with raw files)
standard options for mfc-related programs, like splview are mostly

print to standardprinter
<program> <filetoprint> /p

print to any printer
<program> <filetoprint> /pt <Windows-Printer> <dummy> <dummy>

if in doubt check file-extension options for operation "print"
you have to search the internet for some related programs.

Dieter
 
Back
Top