support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Debugging > Windows > How can I monitor I/O activity on a specific file or folder in Windows?
Question Title 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:

  1. Run procmon.exe
  2. Immediately press the magnifying glass toolbar button or disable "Capture Events" from the File menu (Ctrl-E)
  3. Press the "Clear" toolbar button or "Clear Display" from the Edit menu (Ctrl-X)
  4. 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.
  5. Select "Filter..." from the Filter menu
  6. Press the Reset button if it is enabled
  7. 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.
  8. 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 49744 times so far.
Click Here to View all the questions in Windows category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How can I tell what process has a file opened on Windows?
Article Information Additional Information
Article Number: 136
Created: 2010-07-13 11:58 PM
Rating: 1 Star
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.