The following example displays a list of files, folders, subfolders, and the files therein in the Team Foundation source control server folder to which c:\projects maps. For more information about how to view and edit working folder mappings, see Workspace Command and Workfold Command.
c:\projects>tf dir /recursive
-
Sample output:
$/:
$314
x.c
y.c
z.c
$/314:
$1254
$314/1254:
$folder1
x.c
y.c
8 item(s)
The following example uses the current workspace to map the "314dir" subfolder of the local working folder into a Team Foundation source control server path. It displays all Team Foundation source control server files at that path. The "314dir" subfolder does not have to exist in the local folder.
c:\projects>tf dir 314dir
The following example uses the current workspace to map the "314dir" subfolder of the local working folder into a esprscc path and displays the version of files labeled “My label” in that Team Foundation source control server path. The "314dir" subfolder does not have to exist in the local folder.
c:\projects>tf dir /version:L"My label" 314dir
The following example displays all folders in the root of the Team Foundation source control server. The local working folder is ignored because $/ denotes a Team Foundation source control server path.
c:\projects>tf dir /folders $/
The following example lists every file and folder in the Team Foundation source control server.
c:\projects>tf dir /recursive $/
The following example lists all items and deleted items in the current folder together with their deletion IDs.
c:\projects>tf dir /deleted