xtremee Posted April 13, 2006 Share Posted April 13, 2006 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 deviceSo 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 More sharing options...
Plamdi Posted April 14, 2006 Share Posted April 14, 2006 If your printer is connected to the parallel port:Echo text to print>LPT1Or:Type textdoc.txt>LPT1 Link to comment Share on other sites More sharing options...
xtremee Posted April 14, 2006 Author Share Posted April 14, 2006 1st thax for ur replyIf your printer is connected to the parallel port:Echo text to print>LPT1Or: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 More sharing options...
jaclaz Posted April 14, 2006 Share Posted April 14, 2006 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 More sharing options...
xtremee Posted April 15, 2006 Author Share Posted April 15, 2006 Excellent replythanx that i realy wanna Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now