In this example, assume that you want a filtered inventory for the Dynamic File Services pair that has a primary path of e:\. You want to find JPG files with file sizes greater than 1 MB. You perform the following tasks to manually generate a report:
Use a text editor to create a command file called FSCommands.txt in the Dynamic File Services folder. The first line is the primary path for the pair. The second line requests a summary report to be created and specifies the output file for the summary report. The third line requests a detailed report to be created and specifies the output file for the detailed report. No inventory options are specified, so all inventory options are enabled.
e:\ /summary=e:\mySummary.xml /detailed=e:\myDetails.xml /size>1024 /extension=*.jpg
Log in to the server as the Administrator user, or as a user in the Administrators group.
Open a Command Prompt console, then go to the Dynamic File Services folder.
At the prompt, enter
DswInventory.exe FSCommands.txt
The summary results are written to the e:\mySummary.xml file. The following is sample output of a summary report:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> - <DswInventory GenerationDateTime="8/27/2009 3:13:10 PM" generation="summary" platform="Win32NT" OS="Microsoft Windows NT 5.2.3790 Service Pack 2"> - <folderlist> - <folder> - <![CDATA[ e:\ ]]> </folder> </folderlist> - <list type="Extension"> <criteria filter=".jpg" filecount="5" totalsize="2569" sizeunit="1024" /> </list> - <list type="Length"> <criteria filter="64KB - 256KB" filecount="1" totalsize="161" sizeunit="1024" /> <criteria filter="256KB - 1MB" filecount="4" totalsize="2408" sizeunit="1024" /> </list> </DswInventory>
The detailed results are written to the e:\myDetails.xml file. The following is sample output from a detailed report:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> - <DswInventory GenerationDateTime="8/27/2009 3:13:10 PM" generation="detailed" platform="Win32NT" OS="Microsoft Windows NT 5.2.3790 Service Pack 2"> - <folderlist> - <folder> - <![CDATA[ e:\ ]]> </folder> </folderlist>
- <list type="Extension"> - <criteria filter=".jpg" filecount="5" totalsize="2569" sizeunit="1024">
- <information name="arctica1920.jpg" matchvalue=".jpg"> - <![CDATA[ e:\Primary\subfolder\Pictures\arctica1920.jpg ]]> </information>
- <information name="Eastern Fire.jpg" matchvalue=".jpg"> - <![CDATA[ e:\Primary\subfolder\Pictures\Eastern Fire.jpg ]]> </information>
- <information name="eventide1920.jpg" matchvalue=".jpg"> - <![CDATA[ e:\Primary\subfolder\Pictures\eventide1920.jpg ]]> </information>
- <information name="lastlight1920.jpg" matchvalue=".jpg"> - <![CDATA[ e:\Primary\subfolder\Pictures\lastlight1920.jpg ]]> </information>
- <information name="vigil1920.jpg" matchvalue=".jpg"> - <![CDATA[ e:\Primary\subfolder\Pictures\vigil1920.jpg ]]> </information> </criteria> </list>
- <list type="Length"> - <criteria filter="64KB - 256KB" filecount="1" totalsize="161" sizeunit="1024">
- <information name="Eastern Fire.jpg" matchvalue="164026"> - <![CDATA[ e:\Primary\subfolder\Pictures\Eastern Fire.jpg ]]> </information> </criteria> - <criteria filter="256KB - 1MB" filecount="4" totalsize="2408" sizeunit="1024">
- <information name="vigil1920.jpg" matchvalue="642827"> - <![CDATA[ e:\Primary\subfolder\Pictures\vigil1920.jpg ]]> </information>
- <information name="lastlight1920.jpg" matchvalue="705456"> - <![CDATA[ e:\Primary\subfolder\Pictures\lastlight1920.jpg ]]> </information>
- <information name="eventide1920.jpg" matchvalue="544622"> - <![CDATA[ e:\Primary\subfolder\Pictures\eventide1920.jpg ]]> </information>
- <information name="arctica1920.jpg" matchvalue="572311"> - <![CDATA[ e:\Primary\subfolder\Pictures\arctica1920.jpg ]]> </information> </criteria> </list> </DswInventory>