Jump to content

Print on DOS


xtremee

Recommended Posts

Hi all,

i wanna to know which responsible for print documents by using printer in DOS.

If u try to read File on Win 98 Startup disk u will find under file Menu Print command that allow u to use ur printer So, i bulid my own disk and don't wanna to use edit.com i wanna to send bit's (siganls) from dos to my parallel port as it use it in interface with another device

So can i do it without any .sys or .exe to define Parallel port?!

Any idea will be great.

Regards,

Xtremee

Link to comment
Share on other sites


1st thax for ur reply

If your printer is connected to the parallel port:
Echo text to print>LPT1

Or:

Type textdoc.txt>LPT1

Is that all (i.e. don't need any .sys or any other thing all i need is Command.com)

Also is that all for interfacing with my device as i wanna to send signals to it?!

Regards,

Xtremee

Link to comment
Share on other sites

Actually, redirecting the ECHO or TYPE command is not really what you want, as both (with slight differences) ONLY support ASCII characters.

The "proper" way to send something to the Printer port is, after having made a file containing what you want to send to the port, to run :

copy /b yourfile.xxx LPT1:

this way you can send BINARY data as well.

Just as an example, this way you can send to the printer the needed escape characters, for example for page feed.

jaclaz

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...