How To Detect An Application Or An Service Is Running?
Hi,Do anyone know how to detect an application or a service is running(locked)in VB?Thank you for your help in advance.Tlim
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Detect Linux/unix Service Running Or Not?
Guys, having huge trouble here... here's the schema.
currently I have already develop an AP running on a server computer which can detect services running on other remote computers(windows only)(eg. at 10:00am email service on server1 is not running, the ap send a alert message to my workstation), without installing anything on the remotes. This whole project was done using WMI method which works great.
Now the same things needs to be done with non windows systems, such as Unix/Linux. I am totally lost...
Please provide some ideas and tips how I can do this.
Thanks big time...
Com+ Application Running As Service.
I have a DLL which is registered in COM+ on an XP machine. It has been set to run as an NT Service with a Domain user ID. The service runs fine for some hours, then the service stops. The service cannot be restarted without retyping the password. (the machine is kept without any user logged in) Does any body know the reason for this ?
Running My Application As A Service.
Hello I want to run my application in the background as a windows service.
What I mean is I dont want it to appear in the Program list in taskmanager but only in the process list.
Running VB Application As Service
Can someone help me in running my VB application's exe as windows service. so that it can't be killed from task manager.
I want to run it on both XP and vista as a service.
Need help badly.
thanks in advance,
Ruhii
Running As Application Vs. Running As A Service
How do I tell an existing application to run as a service over there on the taskbar next to the system time? Would I be introducing any limitations by converting a program from running as a program to a service? Thank you.
How To Detect Certain Application Is Running?
Hi..
I have an internet cafe.
Sometime my visitors install flashget on my client computer to download big files. as you know, flashget eat most resource of bandtwith, just like in my internet cafe.
how to make a detection, when flashget is started, it will detected, then it will be killed.
thank you so much for any help.
best regards.
How Can I Detect If An Application Is Running?
Is there an way to detect if an application is running? I tried using FindWindow(vbNullString, EXACTWINDOWTITLE), but the problem is I don't know the exact window title, as it's not always the same. Think of it like Internet Explorer...the title changes depending on what page you are viewing, etc. The program does not show up in the "Processes" tab in the task manager (WinNT), but it is in the "Applications" tab.
Anyone have any suggestions?
Thanks,
Matt
EDIT: I have since realized that the application DOES appear in the processes tab.
How To Detect If Your Application Is Already Running, If So Terminate It
Hi,
I am very new to VB 6.0. I need to write a code which detects whether the application is already running or not. If yes, then the same application should not be allowed to run again. It should exit saying "Application is already running". Can anyone provide me with the code? I am using Visual Basic 6.0.
Regards
DP
How To Detect If Your Activex Application Is Already Running, If So Terminate It
Hi,
I am very new to VB 6.0. I need to write a code which detects whether the activex web application is already running or not. If yes, then the same application should not be allowed to run again. It should exit saying "Application is already running". Can anyone provide me with the code? I am using Visual Basic 6.0.
thanks...
Detect If An Application Is Running AND Kill Its Processes
Can I have this function for Windows NT family (NT 4, W2K, XP) ?
Thank you very much in advance for your help.
'Function for Windows 9x to kill an exe file :
API declarations
(...)
Private Type PROCESSENTRY32
dwSize As Long
cntUsage As Long
th32ProcessID As Long
th32DefaultHeapID As Long
th32ModuleID As Long
cntThreads As Long
th32ParentProcessID As Long
pcPriClassBase As Long
dwFlags As Long
szexeFile As String * MAX_PATH
End Type
Public Function KillApp(myName As String) As Boolean
Const PROCESS_ALL_ACCESS = 0
Dim uProcess As PROCESSENTRY32
Dim rProcessFound As Long
Dim hSnapshot As Long
Dim szExename As String
Dim exitCode As Long
Dim myProcess As Long
Dim AppKill As Boolean
Dim appCount As Integer
Dim i As Integer
On Local Error GoTo Finish
appCount = 0
Const TH32CS_SNAPPROCESS As Long = 2&
uProcess.dwSize = Len(uProcess)
hSnapshot = CreateToolhelpSnapshot(TH32CS_SNAPPROCESS, 0&)
rProcessFound = ProcessFirst(hSnapshot, uProcess)
Do While rProcessFound
i = InStr(1, uProcess.szexeFile, Chr(0))
szExename = LCase$(Left$(uProcess.szexeFile, i - 1))
If Right$(szExename, Len(myName)) = LCase$(myName) Then
KillApp = True
appCount = appCount + 1
myProcess = OpenProcess(PROCESS_ALL_ACCESS, False, uProcess.th32ProcessID)
AppKill = TerminateProcess(myProcess, exitCode)
Call CloseHandle(myProcess)
End If
rProcessFound = ProcessNext(hSnapshot, uProcess)
Loop
Call CloseHandle(hSnapshot)
Finish:
End Function
Detect How Many Nodes Are Running An Application On A Network
Can anyone help!
I have an Application on a Network but I only want two people at a time to access the application. How can I detect (Using VB) how many nodes are running the application on the network?
Please don’t tell me to only install it on two computers HA HA
How To Detect If A Network Service Is Started Or Not!
Hell I wana have my program check if the Messenger Service is enabled if it is it will tell me in a lable. If not then same again it will tell me.
Also I have 2 Option things to use if its disabled I want it to be true on the enabled one.. So on
Well all I need is the code to check if the service is running or not.. I know If & Else so on to chk if the Options are so an so U know what I mean ..>
Thank you! - Reply as soon as possible.
Detect / Block Messenger Service Popups
You know those annoying messenger service popup ads? What is the best way to block them with a program in VB? Should I use a timer and constantly scan for open windows with the right caption and class name and use API to remove it? Or is there a way to detect it before it even shows?
Thanks!
Running As A Service
How could I make my program run as a service, make it run on startup and yeah, well you guys know what a service is. I'm running XP Home, and yes, i do know there are programs out there (firedaemon) which can set it up, but I was wondering if my program could just configure its self to run as a service.
Running VB As A Service?
Hello Again,
I am looking for input on running Visual Basic as a service. I have done some research on this and I found a microsoft page that gives a control (NTSRV.OCX) to use for this. But it basically says microsoft does not reccomend running Visual Basic as a service even with Ntsrv.ocx.
The Article is Below:
http://support.microsoft.com/directo...EN-US;Q175948&
There so many advantages to running an operations type application as a service. I am still tempted to try it anyway.
Does anyone have experience with running Visual Basic as a service? Did you use nstrv? What is your experience with running Visual Basic as a service?
Thanks,
Beth Barja
Is Service Running?
Is there any way to tell if a windows XP or NT service is running through VB?
Thanks!
VB EXE Running As A Service
Help,
I have a vb application which will run on an NT 2000 server, the app runs 24/7 and polls several directories for csv file coming in and then processes then (upload to a database). I need to run the app as a service and not just kick it off on the desktop but I have read on the microsoft site that you can not run a vb exe as a service. Does anyone know how I can run my vb app as a service.
Thanks for your help,
Chris
Running As A Service
How would it be possible to run my VB App as a Win2000/XP background service? Without using any third-party software.
Running As A Service?!?
How do I make my VB App so therefore it loads up when I boot the computer and keeps running even if the user logs on and off...?!?
For e.g. I want it to be running non-stop even when the user logs off and it stays in the "Novell Client Logon Window"?!?
App Running As Os Service?
I received one additional piece of information which may help
(doesn't help me, but maybe it will help someone help me): someone
suggested that the application, or a part of it, begins running as a
service of the operating system. If this sounds plausible, where does
the problem likely originate? Is it some part of the program code, or
some program code that is not present (the app. has nothing in it that
attempts to identify its environment), or maybe something in the
project properties?
Thanks for any info.
Here is the relevant part of my original post:
I have a vb6 application which may have been started on Windows95
using an earlier vb version, definitely updated on Windows98(inc. SP
5). It is deployed on a machine running WindowsXP, and in this
environment the user can close the program, yet it (or some remnant of
it) remains listed in the Task Manager. This doesn't happen every time
user closes the program, and without looking at Task Manager it
appears the program is completely gone--no minimized windows in the
task bar, no error or warning messages.
Running VB As A Service
Can VB be run as a service ( possibly with a tray icon )
if so would I just set it up as a module and no form
any help would be great
Thanks
To Know Whether A Service Is Running
Hai Gurus,
I want to findout whether a service "RPCSS.EXE" is running or not. I would wait till the service is running, then I want to start my application.
How do I know whether the service is running?
Pls give your suggestion
Thanking you in anticipation
Ravi
Windows Service Running
How can I verify if a Windows Service such as Telnet is up and running on a remote server using a VB Script?
Please Help - Checking If A Service Is Running...?
Hello,
Does anyone know of a Windows API function or some other mechanism that would check if a particular service is running on Windows NT?
I need to write a utility that will check if a service is running, and if not, it will need to start it... Please help!
Thanks!
Mark.
Printing While Running As A Service
I am running a VB 6.0 app as a service on a windows 2000 box. This application is supposed to print out letters. I am using the ntservice control on my form, and as far as the service goes everything seems to be fine.
The problem is, VB cannot access the printer object.
I even tried putting together a simple app that just cycles through the printer collection and logs the printer information. Works fine as an exe run from windows, but once again, when run as a service, there is no access to the printer collection; nothing at all.
Any suggestions would be helpful!
Could Be Tricky.. Running A Vb App As A Service
Hey all,
I am looking to run my vbapp as a windows service in the background. Basically I need to install it on a system and have it loaded in the startup, this is all fine and well once the user has logged in, however I need to consider the possibility of a power failure or system reboot and I need the app to run as a background service, therefore it will be running without anyone having to physically login to windows. Can this be done?
Thanx
Problem With VB App Running As Service
I have a VB app that uses a timer to run a fuinction every 60 secs.
Within that function I have some loggin code so I can see when the function is correctly processed.
I used Eltima Application As Service (cos I was lazy and needed some quick way) to get it running as a windows service on my Win2K production server.
However every week or so it stops functioning correctly and also stops writing to my error log.
Is there some issue with using an app with a timer as a service? Any ideas how I can investigate/debug this?!
I could upgrade to eltima v2 as this is upposed to restart stopped services, but not sure whether this would help as I'm not sure if my service is actually stopped, or whether its the VB exe that has the problem.
Any help in investigating this much appreciated!!
Kester
Running As System Service
Me again.
Now I am looking into making a program run as system service. IM guessing its just a ton of API?
Running As Service - Resolved
How do I run some existing applications of mine done in VB6 as a service.
Currently they run hidden with a small icon in the bottom right to show them up but I need to now run them as a service.
I cant seem to find anything that makes sense to me (I am a bit thick!)
Has anyone got any code or programs that does it?
Printing While Running As A Service
I am running a VB 6.0 app as a service on a windows 2000 box. This application is supposed to print out letters. I am using the ntservice control on my form, and as far as the service goes everything seems to be fine.
The problem is, VB cannot access the printer object.
I even tried putting together a simple app that just cycles through the printer collection and logs the printer information. Works fine as an exe run from windows, but once again, when run as a service, there is no access to the printer collection; nothing at all.
Any suggestions would be helpful!
Running A VB 6 Program As A Service.
I have a program (VB6 exe) that I need to execute daily on a Windows 2000 server with no one logged in.
I have 2 questions.
1. What do I need to do - if anything - to allow this program to run as a service?
2. Can I schedule services using, say, windows task scheduler or some other admin tool (or API) or would the program itself just have to keep running continuously and checking whether it was time to do its stuff?
Service Running As Trayicon
I've done application and put it to run as a service. I understand that services run in background, don't have GUI etc., but I really need it to run as trayicon immediately when it is activated, so that I can choose among some settings, shut it down and so on.
I know how to code that, but I don't now how to implement that to service.
Thanx for anykind of info in advance !
How To Check If A Service Is Running
I need to check if a service (specifically SQL Server) is running. I am trying to attach a databse but need to be sure the service is running. I can check the registry to make sure the server is installed but am not quite sure how to check if it is currently running. Thanks
Detecting A Running NT Service...
I need my VB app to detect whether an NT service is running or not, does anyone know of urls where I might find this information, or could anyone here point me in the right direction for doing this?
Any help would be appreciated.
Running A VBS Script From Within A Web Service
Hi, first off I'm very new to Visual Basic, I'm trying my best to figure out how I can run a Web Service using VB so that we can query our windows machines from Linux at my work.
So far I have a simple little script that receives data and is then supposed to execute a VBS script using this data for the parameters, but I can't find any good documentation on how to execute a script.
The script is adsutil.vbs and we normally use it from within a BAT script ("%WINDIR%system32iisweb.vbs /create c:Temp "Template" /d %DOMAIN% /dontstart")
Can anyone give me a pointer in the right direction as to how I would execute this script from within a VB Web Service?
Thanks in advance!
Permissions On A Service Running A VB App
Hi There all,
Some more help from you guys please. I have a system service that spawns a VB 6 exe every hour at 30 minutes past the hour on a WIndows 2000 advanced server PC.
The exe uses a system ODBC connection to communicate with an Access database on another server on the LAN. When I setup the ODBC conenction, I used the full UNC name to the server and had to connect as another user on a domain to enable me to see the Access database, on the server.
If I run this VB app from the command line, it works fine. However when the system service tries to run it, I get an Microsoft Access ODBC driver error saying that the file is not valid.
I am pretty sure that this is down to permissions. I have tried to change the system service. I have tried to get the system service to run as the user that I specified when trying to create the ODBC connection (as opposed to localsystem) but it says that the user name is unknown!!
Any guidence that you guys can give me would be much appreciated.
Thanks.
Shutting Down A VB App Running As A Service
I have a VB application that is running as a Service on Windows 2000. When the service is stopped, I don't think all the resources are being freed up properly. Is there a way to receive a notification that the service is being shut down so that the VB application can shut down gracefully? I noticed that on other posts, they talk about shutting down a form, or clicking on a button, etc, however, I don't have any forms to handle this. Any help is greatly appreciated.
Thanks.
Printing While Running As A Service
I am running a VB 6.0 app as a service on a windows 2000 box. This application is supposed to print out letters. I am using the ntservice control on my form, and as far as the service goes everything seems to be fine.
The problem is, VB cannot access the printer object.
I even tried putting together a simple app that just cycles through the printer collection and logs the printer information. Works fine as an exe run from windows, but once again, when run as a service, there is no access to the printer collection; nothing at all.
Any suggestions would be helpful!
Running Vb6 Program As A Service
is this possible in windows 2003? I need to scan a drive every hour and copy files to a location if they exist, i'd prefer to use vb but i dont think its possible, if it is, has anybody done it or got any advice?
many thanks
Running Service On A Remote Server
hi,
I have a service written in VB which resides on a remote server.
When i am logged onto the remote machine via rdp or mstsc (to get the console) the software runs correctly.
When i am not logged on the service does not run correctly and hangs waiting for user interaction to press a button on the dialog box.
what happens is that the service prompts with a dialog box to open,save or cancel, the service should then choose save and carry on, this happens when im logged on.
I thing the problem could be that the dialog is assumed to to be runnning in the background, and we need it in the foreround to automatically detect and press save.
how can it get it in the foreground or to think it is there ?
Getting Windows User While Running App As Service
Hi,
I have always been able to get the current Windows XP user using API. But now I have changed my app to run as a system service and it always returns SYSTEM as the current user. Does anyone know how to get the current user logged on even with my app as a system service? Does it write to the registry the current user logged on so i can just read that possibly?
Thanks!
|