Discovering If A Specific Program Is Running?
Oct 8, 2010
Is there a way of discovering if a specific program is running?
I want be able to call a program but have it wait to execute until another program has closed. Both these programs are in the Startup folder so I may have to make them mutually exclusive so that which ever starts second has to wait for the other to close. In the case of these two programs it's of no consequence which actually executes first, although it would be interesting to know if I could actually wait for one to open and close before executing the other.
View 4 Replies
ADVERTISEMENT
May 10, 2011
I'm wanting to add a some extra code within my application. My app is a single form that sets some environment variables before calling a one of two possible 3rd party executables to run. I have set via regedit the file association for files to open via my app but what I want to do is have my app check to see if either 3rd party app is already running. In short I'm trying to ensure either 3rd party app stays as a single instance.
If a user were to try an open another instance: 1) my application should simply terminate (no warnings, no msg boxes etc...) 2)the file that the user was trying to open should open within the existing instance of the 3rd party application. The problem is I don't quite know how to achieve both parts I imagine that this 'instance check' should happen as the first bit of code so that if no instance of either 3rd party app is found, then proceed with rest of my application. I have tested using some lines of code at the top of Sub New(). Here's what I have so far for checking for both 3rd party applications:
Public Sub New()
If IsProcessRunning("ustation") = True Then
Me.Close()
[code]....
This gives me an error when I debug (Cannot access a disposed object)
View 14 Replies
Jun 25, 2010
if there was a bad virus on my computer and I wanted to make sure that every time that the Application tried to run, I would Kill That Process? Something that Might Look like this, but Idk..
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = 1000
[code]....
Something that looks like that, yesterday I got the code on how to Kill a process by name, today I would like to learn how to ask the computer if that process is running, and if it is, Kill It.
View 1 Replies
May 5, 2012
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 Replies
Nov 22, 2010
I need to have a specific process(method) run once a day at a given time and was wondering if this can be done using the timer control.
View 2 Replies
Jan 20, 2010
I want to prevent my program from running when it is already running.How can I do that in my vb2008 Code?
View 1 Replies
Dec 4, 2011
I have a server (server A) that has several public IP addresses. I am building a desktop application that will run on server A to fetch data from another server (server B) using the httpwebrequest class.
What I would like to do is be able to programatically direct the application to use a specific IP address from the one the server (A) has.
View 2 Replies
Feb 25, 2010
I need to have a windows service that capable of monitoring constantly whether my application is running or not. If not, the windows service will RUN it for me.
View 4 Replies
Jun 6, 2012
I wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.
View 5 Replies
Oct 10, 2011
have you of any ideas in why does my software in vb 2010 still exist in the task manager (process tab), after i closed the program? i noticed it when i want to delete the .exe file.
View 10 Replies
May 1, 2009
I want to create a program that will run every start of computer and will check if it is 9:00 AM and can only be seen at the bottom right cornner besides the clock. When the program executes must show an notification that the program is running.
View 4 Replies
Aug 3, 2011
I am trying to figure out how VB can focus a specific program and then send commands to the program only. The focus would only be for the commands and would not make the program you are currently in lose focus. Simply, what it is controlling is a Windows Application called GOM Player. I use it to study my material for school. I plays movies in it and don�t have to click out of the application I am working in to pause, play or rewind. The keypad and the company who make it actually have it built into iTunes and it does exactly what I want GOM Player to do.
The reason I dont just use iTunes is because I can�t get my video files to play in iTunes. After pulling teeth with the manufacture I finally to tell me that the iTunes functionality is accessible via plugins built into iTunes. So trying to mimic what is being done there does not help. I believe that a knowledgeable VB programmer could answer my question in seconds, but having some experience with coding and programing I know it also could be a lot more than what I think. [URL]
The question is: What is way that VB can send the key for the macro only to the GOM Player Application even if it is not focused or even If it is minimized.
View 1 Replies
Jan 14, 2009
i'm trying to make a program that searches for a specific file in a specific file, so when the program loads it "writes" in checked list box the names of the drives installed to the computer, but what i want to do is: when the user checks the box, i want it to search for the file in that drive, but i don't know how to do it...
I'm using:
Imports System.IO
Imports System.Collections.ObjectModel
Public Class Form1
[Code].....
how to make it search in the other drives using the checked listbox?
View 8 Replies
Oct 12, 2011
I had the battle system 60% worked out. Went to play some Dragon Age, when I came back nothing was working as the way I left it. I don't know what happened.The richtext box is supposed to disaply the attack monster description, and then it's name, the amount of damage it does. I had it so that I could attack, be attacked, and display damage, and attack discription of both player and monster. when I opened my project to work on it again, hardly anything was working right.[code]
View 9 Replies
Apr 26, 2011
im a wrtiting a simple vb.net problem that when a button is clicked it launches the command prompt.all i need it to do is open cmd on a buttonclick. i have used [code]this works fine if i substitute iexplore.exe for cmd.exe but when i try to run cmd i get an error message below.
View 1 Replies
Sep 11, 2009
I am writing a program (that i have recieved a lot of help with) that creates input files for another program. The bridge between the two programs is a program that has been named the task manager as like the windows task manager it shows what tasks are being done/have been done/are about to be done (or executed)
What i would like to know is how can i run the already installed bridge program from my program? Do i need to run it by opening the executable that contains it? Or by declaring the bridge program as a type/structure/class and going from there to open it?If you're not living on the edge, you're taking up too much room
View 2 Replies
Jan 21, 2010
we have this situation, we need to 'force' user to do stock opname at specified time, so when the time has arrived..the stock opname program will run while their current running is'freeze' until the opname is done..
View 10 Replies
Sep 5, 2011
How do I best speed up running of my program?Once I have simplified code as much as possible, made it smaller. By using loops were appropriate etc.
View 7 Replies
Sep 5, 2011
How do I best speed up running of my prog?Once I have simplified code as much as possible, made it smaller. By using loops were appropriate etc.
View 1 Replies
Jun 14, 2011
How to block a program from running twice. Show a message box when the program is executed twice
View 1 Replies
May 28, 2010
Although I signed up a year ago I didnt have enough free time to carry on programming, but have now made some time.
I have spent the past 2 hours trying to look for a code for visual basic 2008 that will check if a program is running.
It would be really helpful if someone wrote the whole code out and made it clear exactly where I put them name of the .exe file
View 2 Replies
Feb 3, 2009
I am creating a program that will check if a program is running, by checking its window title (NOT THE FILENAME, ITS WINDOW TITLE) and seeing if it is currently running.
So far I was only able to check if the program was running by its filename
[Code]...
View 6 Replies
Sep 13, 2008
I'm making a program in VB to check if a certain program is running, and if not, to start it up, because I'm hardly ever at my computer and sometimes the program that is being checked for existence tends to close down often, so I need something that will check for the existence of the program in question, and start it if it's not running
View 4 Replies
Mar 5, 2012
I have a program that 10-20 people use throughout the day. Because things are rapidly fluctuating I occasionally have to take the database offline, or restart the server for other reasons. I'd like to have a better way to make sure no one is currently in the program than walking to each person and asking them.
I don't want to re-invent the wheel if something like this already exists.
The thoughts I had were:
Create a database "history" entry each time users open or close the program to see who is currently using the system. Use WCF to have the clients "tell" the server that they are connected every X seconds.
View 2 Replies
Feb 3, 2010
I have a program that when youpress a button it opens another program then after that it opens a 2nd program. How can get my program to check the system processes and wait until the first program closes before the 2nd one runs?
View 5 Replies
Jan 3, 2012
I would like to be able to close a running program (service) from another program.I know I can use...
Process.Start("C:XxxYyyProg.exe")
to start program: - Prog.exe
Located at: - C:XxxYyy.
But is there any way to also stop (close) Prog.exe from within another program ? The same one that started it for example...PS I should mention that in this case, Prog.exe is a third party program which I can't alter. It does have an Exit option from a right click.
View 8 Replies
Jul 16, 2009
I am looking for some code that will end the processes of a running program. I have found many post on how to do so but I have found that they are over complicating things. I am using this code to see if a processes is running.
code
Dim ProcessRuning() As Process
ProcessRuning = Process.GetProcessesByName("example")
Do While ProcessRuning.Length <> 0
[Code].....
View 6 Replies
Jun 22, 2010
I got error when i running the program
[code]...
View 1 Replies
Jun 7, 2012
So my class was recently given an assignment to make a Tic Tac Toe program with options of playing against the computer, or another person. I was able to 2 player game work, but I have run into a problem with the two player game. Whenever I start debugging and click on one of my buttons (these represent the 9 spaces on a tic tac toe board), the gameplay form freezes, and becomes uncontrollable. The close button on the form doesn't even work, I have to go back to VB and click stop debugging to close the unresponsive form. I checked my original two player game, which has a similar code, but that works just fine. VB does not show any error messages or give any warning.
Option Strict On
Public Class frmGameplayEasy
Dim intTurn As Integer = 1
[code]......
View 1 Replies
Aug 3, 2010
i wounder if any one knows how to add a control when the program is runing ( example when the user press a button a new picturebox will be draw )NOT picturebox1.show Not i got this dim picturebox1 as new picturebox.
View 3 Replies