Show/Hide Toolbars

Reporting Services CMD

Command: Dir

 

Displays a listing of a folder and items

 

SSRS Version:

 

2000, 2005 (N), 2005 (I), 2008 (N), 2008 (I),2008r2(N), 2008r2(I), 2012(N), 2012(I), Azure

 

(N)=Native

(I)=Integrated

 

Syntax

 

Dir [folder] [/S][/A[:option]]

 

 

Parameters

 

/S                Displays items in folder and sub folders

/A[:option]        Displays items with specific attributes

 

 :Option

      D  Directories        H  Hidden items

      R  Reports                L  Linked Reports

      S  Datasource        I  Images

      C  resource        U  Unknown

      M  Model

      -  prefix meaning NOT

 

 

 

Examples

 

 list items in a directory

 

 dir

 

 

 list items in a directory and sub folders

 

 dir /s

 

 

 list folders and sub folder

 

 dir /ad /s

 

 

list items in a folder beginning with sal

 

 dir sal* 

 

 

list items in folder and sub folders beginning with sal

 

 dir sal* /s

 

Remarks

 

Remember you can redirect output to a file on the computer

 

See Also

 

CD        - Change current folder

MD        - Create a folder

RD        - Remove a folder

DEL        - Delete a item eg. report (non folder)

DELAll        - Delete all items in a folder.