How To Watch Process Activity
Jun 30, 2012How to watch process activity ?
View 10 RepliesHow to watch process activity ?
View 10 RepliesIs there a way to get info like process name of started program, so if i start internet exp. it will detected it and get like iexplorer.
View 9 RepliesI am working on an application that needs to launch Microsoft Word, and then resume when the user closes Word. The code below should work, but it does not. I get an 'object not set to an instance of an object'
1 Dim pInfo As New ProcessStartInfo
2 Dim P As New Process
3 pInfo.FileName = "C: estLLR.doc"
4 P = Process.Start(pInfo)
5 ''# Here is where it goes bad
6 P.WaitForInputIdle()
7 P.WaitForExit()
I put p into the watch window and it shows a a system.diagnostics.process in the watch after line2, but after line 4 it return to NOTHING. The process launches, but I can not monitor it any longer with lines 6 & 7. Is this a 'limitation' of Visual Studio 2010 or am I making an operator error? The MS Help does not show process available in the 2010 version (it is in Visual Studio 2005 and Visual Studio 2008).
[Code]...
How can I make my program watch another process? For example if I open internet explorer it shows the process as iexplore.exe. Now if I wanted to close my program when I closed iexplore.exe how would I do that?
View 4 RepliesDoes anyone know of a way to detect recent activity in a VB.net windows forms application?
We have a retail store where users share floor computers, the application will be on each machine and require a log in before use. I am trying to find a way to automatically close the application if it has been idle for lets say 10 minutes.
I guess I could do something similar with the current windows log on session - set a gp that logs the user out after 10 minutes of inactivity - but if there is an easy, non memory intensive way to do it in vb.net i would rather use that method
I'm in the process of creating a tool that allows users to download stuff from a LAN server. The progress of the download is now being shown as a progress bar that performs a step each time a file is downloaded.
But if the file is a large file (Let's say a 2 GB file) it'll take a while before the progressbar performs a step and the user might think the tool froze up and close it. Now i'm wondering if there's a way to show the activity on the NICs installed. Something like when you open up task manager and go to the "Networking" tab. Showing it as a graph would be awesome or just a percentage is good aswell I have NO idea where I should start looking..
I am using VB.NET 2005 and am looking for a code example that can pause all Windows applications the same way changing desktop themes does. I want all background applications to fade to black and white while allowing the foreground application to continue normally.
View 4 RepliesI have an application in wich I have included a timer wich close automatically the application when no activity is detected.My problem is that when I make 'some activity' like accesing something, I do not know how can I reset the timer to 0.
View 10 Repliessample code of a user's activity log ..where it records the time of login and logout of the user .. and also records the users deleted, created and updated data..
and should i also create a table in the database for activity log?
I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).
View 4 Repliesi am looking for some .net based library/piece of code to implement task/activity scheduling like microsoft project scheduling in following cases...
Finish to Start
Finish to Finish
Start to Finish
[code]....
I'm developing a utility that will look through Active Directory and find anyone that hasn't logged in 90, 120, 180, 365 days. Between what I know and researched on here I've pieced together code that works part of the time. When I LDAP a container with approx 2000 or less user objects it will work, but when I LDAP the entire directory it loops through approx 60,000 user objects.Part of the way through it returns the following warning:
ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x4dbc88 to COM context 0x4dbdf8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.
When I tell it to continue it goes a little further before finally hitting a OutOfMemory Exception:
[Code]...
I'm looking for a way to monitor drive activity using Visual Basic 2008. I want to create a small utility to simulate an LED in the system tray for drive read/write activity. I've found several such utilities that do this, but they all lack one thing or another, or they are over bloated with stuff I don't want or need, etc. I want to write my own so it will be like I want it. To get started, I need to know how to monitor drive activity.
View 4 RepliesI'm looking for a way to monitor drive activity using Visual Basic 2008. I want to create a small utility to simulate an LED in the system tray for drive read/write activity. I've found several such utilities that do this, but they all lack one thing or another, or they are over bloated with stuff I don't want or need, etc. I want to write my own so it will be like I want it. To get started, I need to know how to monitor drive activity.
View 1 RepliesI want to have a VB.Net windows application that monitors the page, and when it detects certain events it triggers some actions based on the data in the page. I've been searching like crazy for some mechanism to "hook" into the browser and hopefully inspect the messages transmitted for the application to know how to react.I've seen the SHDocVw COM object, which comes very close. But when I use the BeforeNavigate2 event, it only seems to fire for GETs, and once I'm on the page where the information is displayed/refreshed the event is not raised.Short of reverse engineering the page, or having to write some kind of proxy...is there a good way to do this in VB.Net?
View 1 RepliesI'm looking for a way to monitor drive activity using Visual Basic 2008. I want to create a small utility to simulate an LED in the system tray for drive read/write activity. I've found several such utilities that do this, but they all lack one thing or another, or they are over bloated with stuff I don't want or need, etc. I want to write my own so it will be like I want it. To get started, I need to know how to monitor drive activity.
View 3 RepliesI'm wondering if its possible to log who is connecting remotely to my local hard drive and also log what they do if possible?A lot of people access my hard drive and im curious to what they do while there.
View 1 RepliesI'm using the ASP.Net Membership system but I'm having an issue with the LastActivityDate for the users in the database. For some users, their last activity date is in the future...
View 3 RepliesI am building a web crawler in .Net which executes approx 500 httpwebrequests at a time. Everything runs fine but the problem arise at some points; Looks like garbage collection thread takes over the whole application pause for a few seconds. Is there anyway that reduce the delay generated by GC.
View 1 RepliesI'm trying to write a simple program to monitor a folder for new files in VB.NET 2010, and am having some trouble. Here's a simplified version of what my program looks like:
[Code]...
I'm looking for a way to monitor drive activity using Visual Basic 2008. I want to create a small utility to simulate an LED in the system tray for drive read/write activity. I've found several such utilities that do this, but they all lack one thing or another, or they are over bloated with stuff I don't want or need, etc. I want to write my own so it will be like I want it. To get started, I need to know how to monitor drive activity.
View 3 RepliesI have a winform which allows people to edit data from a database, to simplify things assume there is a Customer table in database with 3 fields - Name, City, Country. Through winform(s) people can Add/Edit/Delete customers.For each of these actions we need to save:
What the field names are (Name,City,Country in this case)What the field values were before they were modified What the field values are after they are modified.If the action is Add or Delete then 2 and 3 will be the same.I have already implemented this using XMLSerialisation (but not using any of the design patterns) and my XML output looks like this.
<?xml version="1.0" encoding="utf-8"?>
<ActivityItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UserID>26</UserID>
<FormTitle>frmCustomer</FormTitle>
[code]....
The solution can handle different areas of the system with different number of fields (i.e the same thing works when you are modifying Products for instance).is there a well defined design pattern to deal with this kind of behavior?
We have a project for a client that is written in VB.NET. In one of the projects, we have about 100 modules, which are all VERY simple. They're extension methods that convert between object types. Here is a small snippet:
Public Module ScheduleExtensions
<System.Runtime.CompilerServices.Extension()> _
Public Function ToServicesData(ByVal source As Schedule) As ScheduleServicesData
[code].....
Well im getting a error from my antyvirus that my file has been doing suspicuous activity and i dont know how to correct it.
For refrence i have Norton 360 antivirus... 2010
there is any event or way to detect activity in an form or project?in the form and all the child controls.
mainly mouse clicks (not mousemove) and key press.
for example, if the form have not activity in the lasts 10 minutes, do something.
I know in the older versions of Visual Studio, there was an "Add Watch" option where you can choose to stop execution when the value of the field changed. I am using VS 2010, and I can't figure out how to hit the breakpoint when the value of the field changes.
View 2 Repliesi have a variable that changes every few minutes and I am trying to find out the best way of going about 'watching' that variable and simply changing the text of a label based on the returned variable
so pseudo code on a button click at the moment i have a function that returns this variable
label1.text=myfunction.getName()so this works fine , It seem ugly to have some kind of sleep function that loops every couple of seconds to run myfunction.getName() every 2 seconds , as a bit of a newbie , I am just wondering how I can set up a function that basically says 'when myfunction.getName() changes , then change label1.text'
I would like to try and implement a feature wherby once you have logged into an application (straightforward winforms application) and had your credetials verified the application would then force you to log on again if no activity had been detected in the application for a certain number of minutes. In essence I want to provide some extra security for those occasions when users get up and wander away from their machines for prolonged periods.
I have all the logic for logging into the application, it's just the checking for no activity over a given period and then forcing the user to log back in again that I'm not having much luck with.
I want to create a custom form (in visual basic .NET) that will stop other process responsiveness until the form is acknowledged. It would be a nice bonus if I can add a beep when trying to access the main program UI while this form is displayed as well (like how a messagebox does).
[Code]...
I need to watch a folder in our network and if any files get dropped in any time of the day I need to ftp to a different folder.
View 4 Replies