simplicity on anything, anytime n anywhere

Friday, June 27, 2008

How to Capture Shared Network Printer to 'local' LPT Port

Terjemahan "in Bahasa"nya kira-kira :
"Meng-capture Printer Jaringan ke LPT Port Komputer Lokal"

Barusan bongkar2 arsip lama, ketemu ada tulisan kecil 4 tahun lalu yang cukup menarik. Waktu itu ketemu case ada aplikasi cuma bisa nge-print LPT port. Padahal yang ada cuma printer jaringan. Jadi deh iseng2 sana sini. Akhirnya berhasil dan didokumentasikan dalam bahasa Inggris, maklum lagi seneng2nya belajar English waktu itu (**gaya mode = ON**).
Semoga bermanfaat.

------------------------------------------------------------------------

How to Capture Shared Network Printer to 'local' LPT Port


This document describes how to capture shared network printer to act as a local LPT port on a PC with MS Windows 2000 installed. As we know MS Windows 2000 can NOT do 'capture printer port' like MSWindows 98.

These are the steps:

  • Make sure the DESTINATION of LPT Port you want to capture for (ex. LPT1 or LPT2).
  • Make sure the SOURCE of the Shared Network Printer (ex. \\My_Server\My_Printer).
  • Open the registry editor by clicking START - RUN - type 'regedit' - press 'Enter' button.
  • In the registry editor go to this key :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  • Create NEW 'String Value' called 'net delete' (optional, i gave that name 'coz i am using the NET.EXE file for this trick - you can change the name of this string value with other name, but make sure its eazy to remember/understand).***
  • Fill the 'net delete' String Value with :

'C:\WINDOWS\System32\net.exe use LPT1: /delete'***

  • Once more, Create NEW 'String Value' called 'net use'.
  • Fill the 'net use' String Value with :
'C:\WINDOWS\System32\net.exe use LPT1: \\My_Server\My_Printer /persistent:yes'

  • Done!! Now you can try to use your MS-DOS based application to print to the LPT1 Port.


*** Based on Microsoft's reference (http://support.microsoft.com/default.aspx?scid=kb;EL;154498) this string-value is not listed, but as my experienced this entry fixs DISCONNECTED status that happened each time you log-off and re-logging-in.


References :

• Microsoft Knowledge Base Article – 15449

(http://support.microsoft.com/default.aspx?scid=kb;EL;154498)

• Net.exe (C:\WINDOWS\System32\net.exe) Help Page

Completed on 07/15/04 - 11:05:07 am <``_``> kave <``_``>


------------------------------------------------------------------------

Versi PDF nya dapat di download di :
http://geocities.com/aljabareni/writings/capturlpt.pdf

Note :
Artikel ini saya buat untuk M$ platform (**peace**) tepatnya W2K, belum di coba untuk WinXP. Saat itu tempat kerja pake M$, so musti improve sama aktifitas kantor yang pake M$

**inget jaman winblow$, sebenernya kangen juga 'ngejailin' virus biar ga bisa berkembang biak, selamat tinggal virus :p**

0 Comments:

Post a Comment

<< Home