BrainDump
  Home arrow BrainDump arrow Page 2 - Search, Windows Explorer and More in Windo...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Search, Windows Explorer and More in Windows Vista
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-07-26

    Table of Contents:
  • Search, Windows Explorer and More in Windows Vista
  • OpenFiles
  • Search
  • Subst
  • Windows Explorer

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Search, Windows Explorer and More in Windows Vista - OpenFiles


    (Page 2 of 5 )

    \windows\system32\openfiles.exe

    List all currently open files, either shared and accessed by other users on a network or (optionally) opened locally.

    To open

    Start -> type command into the Search field -> right-click on Command Prompt -> Run as Administrator

    Usage

      openfiles /local [ on | off ]
      openfiles /query [/s system [/u user [/p [pass]]]]
       [/fo format] [/nh] [/v]
      openfiles /disconnect [/s system [/u user [/p [pass]]]]
       {[/id id] [/a accessedby] [/o openmode]} [/op openfile]

    Description

    The OpenFiles tool lets you view a list of all the shared files that are currently open across the network and, optionally, files that are opened locally. You can use this to avoid deleting or changing a document that a remote user is working on.

    Type openfiles without any options to display a report such as this:

      Files Opened Remotely via local share points:
      --------------------------------------
      ID Accessed By Type Open File (Path\executable)
      ===== ============= ========== ==========
      98 LOU Windows C:\Stuff to Eat\frittatas.txt
      101 EDDIE Windows C:\Stuff to Drink\milkshakes.txt
      107 CLANCY Windows C:\Stuff to Eat\pork chops.txt

    OpenFiles accepts one of three primary commands, each of which has a range of parameters:

    /local [parameters] 

    Turn on or off the inclusion of local files in reports.
    Type:

      openfiles /local on

    to turn on the "maintain objects list" global flag; this setting is turned off by default and requires Windows to be restarted when changed. Note that turning on this setting may slightly reduce performance.

    /query [parameters] 

    Display a list of opened files and folders; 
    specify  /query for more flexibility than using openfiles without any options, such as the ability to connect to a different machine. Type openfiles /query  /? for  more information on the available parameters. 

    /disconnect [parameters]

    Selectively disconnect files and folders that have been opened remotely. When viewing the list of open files, each entry has an ID; you can use that ID to close open files. Type openfiles /disconnect /? for more information on the available parameters.

    Notes

    • OpenFiles is available only to a user with administrator privileges.

    See also

    "Net," in Chapter 7

    More BrainDump Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows Vista in a Nutshell," published by...
     

    Buy this book now. This article is excerpted from chapter four of the book Windows Vista in a Nutshell, written by Preston Gralla (O'Reilly, 2006; ISBN: 0596527071). Check it out today at your favorite bookstore. Buy this book now.

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek