在虚拟机上托管的旧版 DOS 程序上进行打印

发布于 2025-01-13 13:29:46 字数 317 浏览 5 评论 0原文

我在高中 IT 办公室工作。从 90 年代到 2002 年,我们使用名为 AES 的 DOS 程序来管理电子学生记录(成绩、出勤率、成绩单)。大约 12 年前,当我们退役其服务器时,我们将应用程序转移到了虚拟服务器上。

我在这里工作了5年,这是那个时代的学生第一次要求提供成绩单,而我们没有纸质副本。所以...我摸索着菜单并弄清楚如何打印成绩单。但该应用程序需要连接打印机才能实际打印成绩单。它会出错并在没有打印机的情况下挂起。我们有一台通过 RDP 连接的打印机,适用于本机 Windows 应用程序,但不适用于此系统。

有没有办法伪造 DOS 应用程序以将 RDP 打印机视为 LPT1?

I work in a high school IT office. From the 90s through 2002, we used a DOS program called AES to manage electronic student records (grades, attendance, transcripts). We moved the application over to a virtual server about 12 years ago when we decommissioned its server.

I have worked here for 5 years and this is the first time that a student from that era has requested a transcript and we don't have the paper copy. So... I muddled my way through the menus and figured out how to print the transcript. But the application requires a printer attached to actually print the transcript. It errors out and hangs without a printer. We have a printer attached through RDP, which works for native Windows apps, but not this system.

Is there a way to fake the DOS application to see the RDP printer as LPT1?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不乱于心 2025-01-20 13:29:46

所以这是我修复它的方法...

  1. 在虚拟机上共享打印机
  2. 编辑了启动 DOS 应用程序的批处理文件以包含以下命令:
net use lpt1 \\vmname\printername
  1. 重新启动
  2. 进入应用程序的(最小)打印机设置区域并能够让它发送测试页

只有完成这些特定步骤后,学生档案才会打印出来。

So here's how I fixed it...

  1. shared the printer on the VM
  2. edited the batch file that launched the DOS application to have these commands:
net use lpt1 \\vmname\printername
  1. Rebooted
  2. Went into the application's (minimal) printer setup area and was able to get it to send a test page

Only after those specific steps would the student files print out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文