473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

End process, new process

devonknows
137 100+
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
8 1698
willakawill
1,646 1GB
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
137 100+
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
Killer42
8,435 Expert 8TB
It might be simpler to look into knuckle-dusters or rubber hoses. ;)
Mar 19 '07 #4
devonknows
137 100+
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
Killer42
8,435 Expert 8TB
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
Killer42
8,435 Expert 8TB
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
137 100+
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
Killer42
8,435 Expert 8TB
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

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

Similar topics

1
by: Peter Åstrand | last post by:
There's a new PEP available: PEP 324: popen5 - New POSIX process module A copy is included below. Comments are appreciated. ---- PEP: 324 Title: popen5 - New POSIX process module
11
by: Mike M | last post by:
Is it possible? In the parent process, I have a socket that binds, listens and then accepts new connections (which creates new sockets in the process). I want to be able to pass some of these new...
6
by: Michael J. Moore | last post by:
Is it the listener process, or some other Oracle process. Also, on a UNIX system, when you do "ps -ef" to see your processes, the PPID points back to a process named "init". Why does the PPID not...
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
6
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
10
by: Sorin Dolha [MCSD .NET] | last post by:
I would like to start a process from C# code as another user. The C# code is executed as the ASPNET user because it relies in a Web Page class, and I would like that the process will run as another...
5
by: GTS | last post by:
Hi All, I am spawning a process from a service. The spawned process hungs for various reasons, (corrupted data, deadlock). I am expecting the process has to complete the task with in the...
11
by: Jon Davis | last post by:
Does anyone know why using System.Diagnostics.Process to "wrap" a console application does not always transmit the I/O, depending on what processes you're trying to "consume"? PowerShell, for...
4
by: =?Utf-8?B?U3Jhag==?= | last post by:
There is a process A that launches process B as a COM object. If the User tries to end process A, process B should also end. But vice versa is not true. Process A can run independant of process. It...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.