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

End process, new process

devonknows
100+
P: 137
Hi, the problem im having is that i use downloading software for torrents, and someone in the house keeps pausing it, so what i was wondering if anyone could help me on ending the process.

what i plan on doing is, creating a scheduled task to run the application ever 6 hours, to close the program and reload the program so for example in the form load it would have

Example:
Expand|Select|Wrap|Line Numbers
  1. if ProcessFunc("Appname.exe") then 
  2.       EndProcess("Appname.exe")
  3. else
  4.       StartProcess("Appname.exe")
  5. End If
  6.  
If anyone can help with information, tutorial links or anything
Visual basic version 6.0. Windows XP Pro OS

Any help will be greatly appreciated as always
Kind Regards
Devon.


*EDIT: the program is automatically set to resume downloads on load so anything that would have been paused would be auto resumed at start and the queued items will be re-queued. Thank you :)
Mar 15 '07 #1
Share this Question
Share on Google+
8 Replies


100+
P: 1,646
Hi. You can use a timer control which will only give you just over a minute. Each minute you increment a global variable and when it reaches 360 you fire your process and reset the variable to zero
Mar 15 '07 #2

devonknows
100+
P: 137
Its more the end process thing im looking at, i cant find anything on how to end process, for example when you press ctrl+alt+del, if ye can offer any advice on that i would be most greatful

Kind Regards
Devon
Mar 17 '07 #3

Expert 5K+
P: 8,434
It might be simpler to look into knuckle-dusters or rubber hoses. ;)
Mar 19 '07 #4

devonknows
100+
P: 137
It might be simpler to look into knuckle-dusters or rubber hoses. ;)
Knuckle Dusters ? rubber hoses? i dare not ask :D, so im guessing you cant do it with visual basic then ? or is that vb.net thing ? to kill a process? please im getting desperate :D haha

Thanks if you can help
Devon.
Mar 21 '07 #5

Expert 5K+
P: 8,434
Hi. You can use a timer control which will only give you just over a minute. Each minute you increment a global variable and when it reaches 360 you fire your process and reset the variable to zero
Or if you're like most of us, you'll start firing the process again every minute, because you forgot to reset the variable. :)
Mar 21 '07 #6

Expert 5K+
P: 8,434
Knuckle Dusters ? rubber hoses? i dare not ask :D, so im guessing you cant do it with visual basic then ? or is that vb.net thing ? to kill a process? please im getting desperate :D haha
I wouldn't say you can't do it from VB. Just that it's probably simpler to get physical with the person who keeps pausing the process. Not that we at TSDN would ever condone violence, of course.

In fact, here are a few links which might be helpful in tracking down what you need. My work internet connection seems to be blocking access to most things, so I can't tell you whether they're any good or not.

http://vb-helper.com/howto_terminate_process.html
End All Instances of a Running Process
Various tips (you need to scroll down or search for 'terminate')

Plus you can do the same sort of search I did - just use Google and search for terms like "vb terminate process".
Mar 21 '07 #7

devonknows
100+
P: 137
I wouldn't say you can't so it from VB. Just that it's probably simpler to get physical with the person who keeps pausing the process. Not that we at TSDN would ever condone violence, of course.

In fact, here are a few links which might be helpful in tracking down what you need. My work internet connection seems to be blocking access to most things, so I can't tell you whether they're any good or not.

http://vb-helper.com/howto_terminate_process.html
End All Instances of a Running Process
Various tips (you need to scroll down or search for 'terminate')

Plus you can do the same sort of search I did - just use Google and search for terms like "vb terminate process".

Thank ye kindly, and as for getting physical, my gf would take a bat to my head if i ever thought about it :D, but i will have alook at them links when i get back from work, thanks Killer

Kind Regards
Devon.
Mar 21 '07 #8

Expert 5K+
P: 8,434
Good luck.

Hey! What about if you set up the torrent thing to run under its own dedicated user ID in the background? That is, start it up then switch users.

It would probably help if the "pausing user" was set as a non-Admin.
Mar 22 '07 #9

Post your reply

Sign in to post your reply or Sign up for a free account.