![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | view process file handles im looking to get a list of file handles per process. obviously started with the get-process and it has a handle property but that doesnt seem to have what im looking for. basically im looking for an example that will, lets say, tell me what file WordPad has open. Thanks Justin |
My System Specs![]() |
| | #2 (permalink) | ||||||||||||
| Guest | Re: view process file handles after digging in to this a bit more im thinking this might be a little more difficult than need be. really my goal is to see if a backup job is done. the problem is i cant do the standard file open loops because the file is 800+GB, i havent tried yet but i assume its going to eat up a ton of resources. the box cant really afford that... the backup is from DB2 so there isnt a process i can watch or anything like that.. i just need to see when there is no longer a handle to the file. "Justin Rich" <jrich523@xxxxxx> wrote in message news:O6yI$HdtIHA.672@xxxxxx
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||
| Guest | Re: view process file handles Justin Rich wrote:
PSH>get-wmiobject -query "select * from win32_process where name='notepad.exe'" I don't think PowerShell or WMI will help you with determine whether a particular file is in use. I'd think you'd have more luck using "handle": http://technet.microsoft.com/en-us/s.../bb896655.aspx It's a DOS binary, so you should have any problems parsing the output from PoSH. Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com | ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #4 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: view process file handles that should cut it, thanks ![]() "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message news:ubrxVBetIHA.3968@xxxxxx
| ||||||||||||||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: The Process cannot access the file ... | Shay Levy [MVP] | PowerShell | 3 | 08-08-2008 04:11 AM |
| corrupt windows host process file ???? | NURSEASHLEYN | Vista General | 2 | 03-12-2008 06:22 AM |
| How to close open file handles? | Hal Rottenberg | PowerShell | 0 | 01-25-2008 07:35 AM |
| deleting file 'in use by another process' in Vista | fizzy12 | Vista file management | 8 | 11-04-2007 10:02 AM |
| View a Print-To-File File | ajmplanner | Vista print fax & scan | 4 | 01-10-2007 08:47 PM |