Table of Contents

dir

FreeSince 2.0.0

Description

Displays a list of files and subdirectories in a directory.

Syntax

dir -sort -columns -csv -refresh

Parameters

Parameter Alias Required Description
-sort No The column name to sort the list of files and folders with.
-columns -cols No The columns to display, separated by commas. These are PDM variables drawn from the @ tab.
-csv No Export the directory listing to a CSV file. Must include the csv extension
-Refresh No Refreshes the session to load the current files and sub-folders in the active directory in the autocomplete list.
-recursive No Lists all files and all folders in the current directory recursively.

Examples

dir  #"C:\Vault\Documents"
dir  -sort "name" -cols "description,partnumber" -csv "output.csv" -refresh

Remarks

  • Use the -refresh parameter to force the session to load the current files and sub-folders in the active directory. Do not use this when the current folder has many items.
  • The CSV file will be checked into the current directory.

Tutorial