Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - How to close open file handles?

Reply
 
Old 01-25-2008   #1 (permalink)
Hal Rottenberg


 
 

How to close open file handles?

We've been trying to answer this question from a forum member on
PowerShellCommunity.org but so far no luck. Here's the forum thread:

http://www.powershellcommunity.org/F...c/Default.aspx

Paraphrasing his request:

'Trying to develop a script to go out and close all open files using the
filename(or portion thereof) as the search parameter.'

The files are opened remotely (file server). He doesn't want to use an external
executable like handles.exe. There are some Vbscript examples around using
[ADSI]WinNT://$server/LanmanServer
(http://www.scriptinganswers.com/arch...enAccessDB.htm), but
nothing we're finding seems very reliable.

Thought I'd widen the audience and see what happens.

--

Hal Rottenberg
Blog: http://halr9000.com
Webmaster, Psi (http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Solved File menu open/close issue General Discussion
open a file, wait for user to amend file, close & process PowerShell
1.8MM File Handles Open General Discussion
Encrypt File / Decrypt File / Open/Close PSD Vista General
Can't eject device even though no handles open Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46