Click here to Skip to main content
13,199,318 members (62,814 online)
Rate this:
Please Sign up or sign in to vote.
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 25-Jan-13 23:19pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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[^]
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171020.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100