# JSI Tip 10570. How can I define a NUL printer, so jobs sent to it are automatically deleted without wasting paper?

When you define a printer on a local NUL port, jobs sent to it are not printed and are automatically deleted.

I have scripted NULprt.bat to add a local NUL printer.

The syntax for using NULprt.bat is:

NULprt

NULprt.bat contains:

```
@echo on
regsvr32 /s "C:\Program Files\Windows Resource Kits\Tools\prnadmin.dll"
:: Add a local NUL port
cscript //nologo "C:\Program Files\Windows Resource Kits\Tools\portmgr.vbs" -a -p NUL -t local
:: Add the "Generic / Text Only" driver
cscript //nologo "C:\Program Files\Windows Resource Kits\Tools\drvmgr.vbs" -a -i %SystemRoot%\inf\ntprint.inf -m "Generic / Text Only"
:: Add the NUL printer using the local NUL port and the "Generic / Text Only" driver
cscript //nologo "C:\Program Files\Windows Resource Kits\Tools\prnmgr.vbs" -a -f %SystemRoot%\inf\ntprint.inf -m "Generic / Text Only" -b NUL -r NUL
```