Parallel Port Command Line Control

B

Bob Felton

I'm looking for a parallel port "driver" that will run under Windows
XP that will allow command line control of the parallel port data
bits. Can anyone point me in the right direction? Tnx!
 
B

Bob Felton

Thanks for the pointers. What I want to do is set a single bit of the
parallel port to a "1" via a batch (*.bat) file and then reset it with
another batch file. The batch files would be run via the scheduler
for control of an external device. The OS involved is actually
Windows 2000 Server.
 
V

V Green

Bob Felton said:
Thanks for the pointers. What I want to do is set a single bit of the
parallel port to a "1" via a batch (*.bat) file and then reset it with
another batch file. The batch files would be run via the scheduler
for control of an external device. The OS involved is actually
Windows 2000 Server.

Can't be done with a batch file. Not enough
functionality.

You would have to write a program using one of
the techniques that use the stuff I already mentioned,
then call that program with a batch file.
 
B

Bob Felton

OK, thanks for quick response. I'll look into those items you
provided and see if I can figure out how to use one.
 
S

Si Ballenger

Thanks for the pointers. What I want to do is set a single bit of the
parallel port to a "1" via a batch (*.bat) file and then reset it with
another batch file. The batch files would be run via the scheduler
for control of an external device. The OS involved is actually
Windows 2000 Server.

Pretty simple on XP pro, so should work on 2k server. First you
need to get access to the computer hardware. Use a program called
userport to do that (google for userport.zip). Run userport one
time and you are good to go accessing the hardware from then on.
Below is a link to my page where I have some info on simple
control of the parallel port. The bottom pin2.bat file uses debug
(which is still included in most windows distributions) to
control the parallel port after you have run userport. The below
pin2.bat file sets pin 2 (data 0) on parallel port 378 to +5v.
Using 00 instead of 01 would turn the pin off. To turn all data
pins on, use ff (debug uses hex values). More info on the link
page below.

http://www.geocities.com/zoomkat/ppswitcher.htm

::pin2.bat

@echo off
GOTO BEGIN
o 378 01
G
:BEGIN
DEBUG < pin2.bat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top