Programmers question regarding parallel ports...

gdavies

Well-Known Forumite
basil batch scripts is a program that is made in dos, the good old days where it was nothing but a black screen with white text, but wait for it no mouse, yes you read right no mouse lol shows my age i remember it well and also shows how much of a geek i am but never mind.

Wmr i can make the script smaller if you like and if it is not successful i will turn on the pc box as there is a few commands to disable the lpt1 ports
 

gdavies

Well-Known Forumite
Gramaisc said:
gdavies is going to write a script - perhaps we should learn it and perform it as a Forum pantomime?
the script was just before your post however i have made the title include stafford forum so we can all rejoice if it works that is not used lpt1 in a dos command for years lol
 

wmrcomputers

Stafford PC & laptop repair specialist
Enviroment variable SAFETY not defined
Invalid parameter - LPT1:,,P
Can't find file LPT1
Can't find file PORT
Can't find file DISABLED
Press any key to continue . . .

:( Cheers for trying anyway. I have a feeling this is more to do with XP pro, as I tested this relay board when I built it last year and didn't have this problem but that was with XP home.
 

wmrcomputers

Stafford PC & laptop repair specialist
Having a re-think now guys, ANY sequence from my lighting software results in the data channels being left at a LOW state (off) afterwards, so although not the simple solution I hoped to acheive I do have another way....
Get lightshow software to start at boot and run a split second sequence which would barely flicker the lights!! Looks like this will have to be my next plan.

Thanks for all your input though guys, nice to know so many people wanted to try and help! :)
 

gdavies

Well-Known Forumite
i know what the error is there, the safety aspect is not reconised in your dos version, and lpt1 is not showing in your comms section under mode so it would defer it, then the rest has come up because it was meant to print a message on screen alerting you what is happening, because your lights are connected via lpt1 it see it as a printer and is trying to print out a page for each word, not good the press any key worked to stop it all and i am presuming the title is working too give me 5 mi and i will test out on my windows box
 

gdavies

Well-Known Forumite
ok try this

////////////////////////////////////
@ ECHO OFF

TITLE STAFFORD FORUM HELPINGS BY GDAVIES
MODE LPT1: =com1
ECHO LPT1 PORT MOVED
ECHO COM PORT1 IS NOW ENABLED
PAUSE

EXIT
///////////////////////////////////

that one will disable it by moving it to another port just replace the number 1 with a free com port you have
 

Alan B'Stard

Well-Known Forumite
gdavies said:
the wareseker link would be linking to copywritten software which i am sure you are aware
The link and software are both legit and not "warez". In fact do warez siteze exizt in the bittorrent age?
 

wmrcomputers

Stafford PC & laptop repair specialist
script is accepted and reroutes the port, but that doesn't actually cancel the relays. I think they need to physically receive a low signal to switch off.

don't worry any further mate. I really do appreciate all of your help but I can sort it out the other way I mentioned. It was worth a go!!! cheers again buddy
 

gdavies

Well-Known Forumite
Do appologise colin i mis read the info on the second link i just saw

WareSeeker periodically updates pricing and software information of Parallel port 1.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Parallel port 1.0 Edition

which normally would point to something untoward lol but after it does say all software links come from the publisher, my bad too much going ons lol
 

gdavies

Well-Known Forumite
shame it is not cutting off the relay as it was a simple solution clearly too good to be true, i do know how to sort it via vb but if your trying another method then no worries glad to help.
 
Top