RUNCMDDIR The Run Command Against Directory (RUNCMDDIR) command will traverse a sub tree applying user-specified commands to the files and directories found in the sub tree. All files and sub directories in a directory will be processed before the directory is processed. RUNCMDDIR takes three parameters: directory (DIR), file command (FCMD), and directory command (DIRCMD). The DIR parameter takes the fully qualified path name of the directory in which execution begins. This parameter is mandatory. The FCMD parameter specifies an iSeries command to be run against IFS files, i.e. RMVLNK. Only iSeries commands that can be run against an IFS file can be entered for this parameter. Valid commands can be typed at the command line in this format, CMD '/dir/file'. This parameter is mandatory. The DIRCMD parameter specifies an iSeries command to be run against IFS directories, i.e. RMVDIR. Only iSeries commands that can be run against an IFS directory can be entered for this parameter. Valid commands can be typed at the command line in this format, CMD '/dir/dir'. This parameter is optional. Example RUNCMDDIR DIR('/home/usr') FCMD(RMVLNK) DIRCMD(RMVDIR) will first remove all files in the directory '/home/usr' and will then remove the directory '/home/usr'.