Difference between revisions of "DIR"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
(See Also)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Display a directory of files
 
Display a directory of files
 
  
 
==Syntax==
 
==Syntax==
 
DIR [<skeleton>]
 
DIR [<skeleton>]
 
  
 
==See Also==
 
==See Also==
[[!]], [[ADIR()]], [[DIR()]], [[DECRYPT]], [[DISPLAY FILES]], [[ENCRYPT]], [[LIST FILES]], [[RUN]], [[SET FILETYPE]]
+
[[ADIR()]], [[CREATE TABLE]], [[DECRYPT]], [[DEFAULT()]], [[DISPLAY FILES]], [[DROP TABLE]], [[ENCRYPT]], [[LIST FILES]], [[LIST STATUS]], [[LIST STRUCTURE]], [[OPEN DATABASE]], [[SET DEFAULT]]
 
+
  
 
==Description==
 
==Description==
The DIR command displays filenames in the current directory and path (see SET PATH) matching the specified <skeleton>.  The total number of files matching the <skeleton>, their total size and the remaining drive space in Megabytes are also displayed.
+
The DIR command displays filenames in the current directory and path (see SET PATH) matching the specified <skeleton>.  The total number of files matching the <skeleton>, their total size and the remaining drive space are also displayed.
  
If DIR is issued with no <skeleton> specified, then it will list details of the table files only.  The table file listing includes the following information:
+
If DIR is issued with no <skeleton> specified, then it will list details of the table and virtual table files only.   
  
 +
With no database open, the file listing displays the following information for tables:
  
* File type if not Recital, e.g. (FP2) for FoxPro table
+
* Table name
* DES3 Encryption status, i.e. (DES3) if table is encrypted
+
* Number of records
* Number of Records
+
* Last update date
* Last Update date
+
* Size
* Size in bytes
+
* Dictionary status (Yes/None)
* Dictionary status, i.e. Yes or None
+
* Triggers status (Yes/None)
* Triggers status, i.e. Yes or None
+
* Security status (Yes/None)
* Security status, i.e. Yes or None
+
* Total size of tables in Megabytes
+
* Number of tables
+
* Drive space remaining in Megabytes
+
  
 +
The following information for virtual tables:
  
Please see the CREATE command for information on the Dictionary, Triggers and Security.
+
* Table / virtual table name and connection string
  
The DIR command is a synonym of the DISPLAY FILES command.  The DIR | DISPLAY FILES commands will pause at each page display, waiting for a key press.  For listings without user intervention, please use the LIST FILES command.
+
And the following size information:
  
 +
* Total size of tables
 +
* Drive space remaining
 +
 +
With a database open, the file listing displays the following information:
 +
 +
* Table / virtual table name
 +
* Table / virtual table path
 +
* Table / virtual table type (Table/VirtualTable)
 +
* Virtual table connection string, alias, primary key, command and properties
  
 
==Example==
 
==Example==
Line 41: Line 45:
 
</code>
 
</code>
  
 
==Products==
 
Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Disk and File Utilities]]
+
[[Category:Disk and File Commands]]
[[Category:Disk and File Utilities Commands]]
+

Latest revision as of 06:03, 21 December 2020

Purpose

Display a directory of files

Syntax

DIR [<skeleton>]

See Also

ADIR(), CREATE TABLE, DECRYPT, DEFAULT(), DISPLAY FILES, DROP TABLE, ENCRYPT, LIST FILES, LIST STATUS, LIST STRUCTURE, OPEN DATABASE, SET DEFAULT

Description

The DIR command displays filenames in the current directory and path (see SET PATH) matching the specified <skeleton>. The total number of files matching the <skeleton>, their total size and the remaining drive space are also displayed.

If DIR is issued with no <skeleton> specified, then it will list details of the table and virtual table files only.

With no database open, the file listing displays the following information for tables:

  • Table name
  • Number of records
  • Last update date
  • Size
  • Dictionary status (Yes/None)
  • Triggers status (Yes/None)
  • Security status (Yes/None)

The following information for virtual tables:

  • Table / virtual table name and connection string

And the following size information:

  • Total size of tables
  • Drive space remaining

With a database open, the file listing displays the following information:

  • Table / virtual table name
  • Table / virtual table path
  • Table / virtual table type (Table/VirtualTable)
  • Virtual table connection string, alias, primary key, command and properties

Example

dir
dir *.prg