By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,566 Members | 1,749 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,566 IT Pros & Developers. It's quick & easy.

process killing

P: n/a
hi,

i shell out a process during my app's run, and then i want to close it when
the program ends. i used the following code. it works fine
with many files, for example an rtf file.

Public proc As System.Diagnostics.Process 'proc is in scope the whole
time

proc = System.Diagnostics.Process.Start(Application.Start upPath & "\" &
"xx.rtf")

proc.Kill 'works fine, closes xx.rtf
when i use it to open a help file, it won't close. the help file is not
linked to my app's forms or controls in any way

Public proc As System.Diagnostics.Process 'proc is in scope the whole
time

proc = System.Diagnostics.Process.Start(Application.Start upPath & "\" &
"xx.hlp")

proc.Kill 'doesn't close xx.hlp
how do i get it to close? is there some other way to open and close it?
thanks ray

please respond to the list



Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.