Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
i hav an exe file in a directory ,example:"c:\".now i want to call the file using parallel port to which a switch is connected .when i on the switch the signal is passes through the parallel port and with the help of vb script and using
"shell ()" command we need to call.....plz any one help me in coding this
Posted

1 solution

There is no way to automatically run an exe file by just connecting any device to a parallel port - it just doesn't work like that.
You would have to have a program sitting on the PC monitoring the parallel port and executing the program when told to.

See here: I/O Ports Programming (Parallel port) Reading / Writing + Surveillance System using VB.NET[^]

and here: Process Class[^]
 
Share this answer
 
Comments
kspcr 26-Jan-13 5:39am    
sir firstly i thank u for replying me.

sir actually my main aim is to call the notepad .exe in the system using parallel port.

for that i thought i will arrange an ir interrupt to the parallel port and the parallel port which is connected to the system. In the system using the vb script and interfacing the parallel port with it can help me in calling the notepad.exe file

Now i am not knowing how to write the program in the vb script...plz plz plz help me..
OriginalGriff 26-Jan-13 5:43am    
Did you read the links?
Dave Kreskowiak 26-Jan-13 10:32am    
Well, I can tell you you're not going to do this in VBScript as it has no facilities at all to call the Win32 functions that are going to be required to do this.

Oh! And the Parallel port is only found on older motherboards. Nobody puts parallel ports in PC's anymore.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900