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: -
if ProcessFunc("Appname.exe") then
-
EndProcess("Appname.exe")
-
else
-
StartProcess("Appname.exe")
-
End If
-
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 :)
8 1698
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
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
It might be simpler to look into knuckle-dusters or rubber hoses. ;)
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.
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. :)
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".
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.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| | |