How can I monitor I/O activity on a specific file or folder in Windows? |
Use Windows Sysinternals Process Monitor utility.
For example, download http://download.sysinternals.com/Files/ProcessMonitor.zip and extract procmon.exe to a directory in your PATH such as C:\Windows. Or copy it to a new directory named C:\Sysinternals and add that to your PATH. Or simply run promon.exe by clicking here http://live.sysinternals.com/procmon.exe
To monitor a specific file or directory, set up a filter in Process Monitor as follows:
-
Run procmon.exe
-
Immediately press the magnifying glass toolbar button or disable "Capture Events" from the File menu (Ctrl-E)
-
Press the "Clear" toolbar button or "Clear Display" from the Edit menu (Ctrl-X)
-
To narrow the types of events to be captured click each of the rightmost toolbar buttons (except for the file cabinet) so they appear flush with the toolbar. Leave the file cabinet button pressed so that Process Monitor will show file system activity.
-
Select "Filter..." from the Filter menu
-
Press the Reset button if it is enabled
-
In the filter fields, select "Path" "is" and then type into the entry field the local disk or UNC path name for the directory you want to monitor (e.g. c:\data or \\myserver\mydir). Select "Include", press Add, Apply, OK.
-
Enable "Capture Events" (Ctrl-E) to watch the I/O activity in the specified directory.
If you are diagnosing a problem such as "Access is denied", as soon as it occurs disable "Capture Events" and search back through the log to see what other process has accessed the file.
Select Find... from the Edit menu to search for a particular filename.
Note that you can save the log in various formats by selecting Save... from the File menu. Save the log in .PML format if you want to reopen it with Process Monitor.
For more information about Windows Sysinternals visit http://technet.microsoft.com/en-us/sysinternals/default.aspx
|
Authored
by: Veryant Support
This question has been viewed 112789 times so far.
|
Click
Here to View all the questions in Windows
category. |
File Attachments |
There are no attachment file(s) related to this question. |
|
User Comments |
 |
|
There are no user comments for this question. Be the first to post a comment. Click Here |
Related Questions
|
- How can I tell what process has a file opened on Windows?
- What is the recommended method for specifying isCOBOL framework properties?
|