首页 > 其他分享 >create null printer

create null printer

时间:2024-12-05 17:42:57浏览次数:8  
标签:printer create Step nul Printer New null Port

https://community.spiceworks.com/t/create-a-black-hole-or-toilet-printer-nul-printer/1009264

 came across something I never expected to need to do. I needed to create a printer that wouldn’t print. So here is how I did it.

Step 1: Create a New Printer

Go into devices and printers and create a new local printer.

Step 2: Create a New Port

5d43c17eeb1c247ca00f9f25ba05b4688d356797a230e8a7a910ecb5e4286538_nul_port.png

Create a new Local Port.

For the Port name enter “nul” without the quotes

Step 3: Select a Printer Driver

Then choose your printer driver. Since this printer won’t print anything you can use any pre-installed printer and driver.

I used a Lexmark printer that was already installed on my system

Step 4: Name the Printer

Use a descriptive name like “The Black Hole” or “The Toilet”

don’t share the printer (unless you want to)

Step 5: Printing to this printer

Now you will have a normal looking printer that will act like any other printer with one difference.

Because it has a nul port it will simply flush the print jobs from the queue and report that it successfully printed to the software sending the job without ever physically printing a page.

Perfect

This is a simple solution to what was a large problem in my current environment (due to a software restriction). I hope it helps someone else also

   

Setting Up a Windows Nul Port

The Windows nul port (“nul” with a single letter ‘L’) is easily attached to a Windows print queue:

  1. Bring up the Printer Properties for the print queue in question.
  2. Select the Ports tab > then click Add Port….
  3. Choose Local Port > click on New Port… > enter nul as the port name.
  4. Click OK > then Close > then Apply, and you’re done!

For example:

  • On newer Windows versions: head into Bluetooth and devices → Printers and scanners → [select your printer] → Printer Properties → Ports → Add Port… → Local Port → New Port… → enter nul → OK → Close → Apply

  • On older Windows versions: head into Devices and Printers → Right-click Printer → Printer Properties → Ports → Add Port… → Local Port → New Port… → enter nul → OK → Close → Apply

标签:printer,create,Step,nul,Printer,New,null,Port
From: https://www.cnblogs.com/jchblog/p/18589065

相关文章

  • plus.webview.create( url, id, styles, extras )参数及说明
    plus.webview.create("xxx.html",//url:String类型,可选,新窗口加载的HTML页面地址.新打开Webview窗口要加载的HTML页面地址,可支持本地地址和网络地址."xxx",//id:String类型,可选,新窗口的标识.窗口标识可用于在其它页面中通过getWebviewById来查找指定的窗口,为了保持窗口......
  • 来学习typescript 吧! --1基础类型(string、number、 boolean、void 、Null、undefined
    TS是JS的超集,所以js基础的类型都包含在内基础类型:Boolean、Number、String、null、undefined以及ES6的Symbol和ES10的BigInt一、安装和使用ts:1、npminstalltypescript-g//全局安装typescript2、tsc--init//生成tsconfig.json文件3、tscindex.ts//编译ts文......
  • Create Stunning Word Clouds with Ease!
    >Lookingtocraftbreathtakingwordclouds?WordCloudStudioisyourgo-tosolution!Whetheryou’reamarketer,educator,designer,orsimplysomeonewholovesvisualizingdata,thisapphaseverythingyouneed.Downloadnow:https://apps.apple.com/app......
  • Dede更新栏目时出现 DedeTag Engine Create File False 错误
    原因:要创建的目录或文件没有写入权限。解决办法:定位出错文件:修改 include/dedetag.class.php 文件,搜索 "DedeTagEngineCreateFileFalse",找到以下代码:  $fp=@fopen($filename,"w")ordie("DedeTagEngineCreateFileFalse");修改为:  $fp......
  • ORB-SLAM2 ---- LocalMapping::MapPointCulling()和LocalMapping::CreateNewMapPoints
    文章目录一、函数意义二、LocalMapping::MapPointCulling()1.函数讲解2.函数代码三、LocalMapping::CreateNewMapPoints()1.函数讲解2.函数代码四、总结一、函数意义这两个函数是局部见图的核心函数之二,作用是删除不好的地图点,为创造新的地图点。学习局部建图......
  • 【Windows】Windows中的IPC$共享和null会话
    一、IPC$共享IPC(InternetProcessConnection)是共享“命名管道”的资源,它是Windows操作系统(特别是NT/2000及以上版本)中用于进程间通信的一种机制。通过IPC,连接双方可以建立安全的通道,并在此通道上进行加密数据的交换,从而实现对远程计算机的访问和管理。以下是对IPC$共享知识的详细......
  • #Js篇: 链式判断运算符 ?.和Null判断运算符 ??和逻辑赋值运算符||= &&= ??=
    链式判断运算符?.?.运算符,直接在链式调用的时候判断,左侧的对象是否为null或undefined。如果是的,就不再往下运算,而是返回undefined。链判断运算符?.有三种写法。obj?.prop//对象属性是否存在obj?.[expr]//同上func?.(…args)//函数或对象方法是否存在下面是obj?......
  • ">/dev/null 2>&1 "是什么意思
    ">/dev/null2>&1"是什么意思在Linux中:0:表示键盘输入(stdin)1:表示标准输出(stdout),系统默认是12:表示错误输出(stderr)shell命令:command>/dev/null2>&1&等同于command1>/dev/null2>&1&1)command:表示shell命令或一个可执行的程序2)>:表示重定向到3)/d......
  • Dynamics CRM 365 创建实体 CreateEntityRequest
    介绍在日常开发中,我们常通过界面操作对实体进行新建,但是官方是提供了API供开发者通过代码直接创建实体,接下来我将简单介绍如何通过代码进行dynamicscrm系统新实体新建。环境准备IDE:VisualStudio2022Package:Microsoft.CrmSdk.XrmTooling.CoreAssembly实现代码usingM......
  • C++中的NULL和nullptr
    NULL 和 nullptr 都是用于表示空指针的常量,但它们在C++中有一些重要的区别,特别是随着C++11引入了 nullptr 之后,nullptr 成为了更推荐的选择。以下是两者的主要区别:1.类型NULL:在C和C++中,NULL 是一个宏,通常定义为 0(或 (void*)0),它本质上是整数常量。由于它是......