Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB
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 26-Jan-13 0:19am
kspcr346

1 solution

Rate this: bad
good
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[^]
  Permalink  
Comments
kspcr at 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 at 26-Jan-13 5:43am
   
Did you read the links?
Dave Kreskowiak at 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
0 OriginalGriff 277
1 Maciej Los 230
2 BillWoodruff 205
3 Sergey Alexandrovich Kryukov 195
4 DamithSL 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,650
3 Kornfeld Eliyahu Peter 3,460
4 Sergey Alexandrovich Kryukov 2,811


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2014
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