Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Ctrl-C to a process started with WshShell

Status
Not open for further replies.

robdon

Programmer
May 21, 2001
252
ES
Hi,

I start a process on a unix machine from my VB6 app, using the WshShell with the .Exec command.

It starts a program on windows called 'plink' (from the PuTTY program to run unix commands) that then runs a script on the unix machine.

Now, I want to be able to send a CTRL-C to the script/plink.

I've tried:

excWSH.StdIn.Write "^C"

But it doesnt seem to do much.

Anyone know how to send a CTRL-C to a process that is started like this?

Thanks,

Rob.

ProIV Resource Centre
 
Sendkeys sends to the focused application...

This app/script is running in the background as a process, hidden, so it wont work with sendkeys.

Rob.

ProIV Resource Centre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top