"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

Windows XP and DOS

Display Directory and File Owners

SUMMARY: If you share your Windows XP machine with others, this parameter lets you display directory and file ownership at the DOS prompt or in a batch file.


 

If you administer a Windows XP machine containing multiple user accounts, it may prove beneficial to view who owns a particular file or directory. This can help prevent accidentally moving or deleting a file used by someone else, or this feature can help monitor unwanted activity.

dir /q

If you just want to find files owned by the Administrator account, for example, use the following piped command:

dir /q | find "Administrator"

To view all files owned by Administrator in the current directory and all subdirectories, pipe the command with findstr as follows:

dir /q /s | findstr "Administrator Directory"

This will display each directory name followed by all files (if any) owned by the Administrator account.



Print This Tip

Get E-Mail When New Tips are Online

Return to the Windows XP and DOS page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )