Difference between revisions of "MC-Basic:DIR$"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "''<filename>''" to "<''filename''>")
 
(7 intermediate revisions by 2 users not shown)
Line 7: Line 7:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Version 4.5.3 and higher
+
Since Version 4.5.3
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 15: Line 15:
  
 
|TYPE=
 
|TYPE=
''<return value>'': String<br>
+
<''return value''>: String<br>
 
<''filename''>: String
 
<''filename''>: String
  
 
|RANGE=
 
|RANGE=
''<return value>'': String<br>
+
<''return value''>: String<br>
 
''< filename>'': String
 
''< filename>'': String
  
Line 32: Line 32:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
Read only
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 42: Line 42:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:DIR|DIR]]
+
* [[MC-Basic:DIR|DIR]]
* [[Axystems:MC-Basic:DELETE|DELETE]]
+
* [[MC-Basic:DELETE|DELETE]]
* [[Axystems:MC-Basic:DELETE$|DELETE$]]
+
* [[MC-Basic:DELETE$|DELETE$]]
  
  
[[Category:Axystems:MC-Basic:File Management|DIR$]]
+
[[Category:MC-Basic:File Management|DIR$]]
 
}}
 
}}

Latest revision as of 09:16, 22 May 2014

This command lists files that exist on the RAM disk and on the Flash disk. <filename string> may contain the * and ? wildcard characters to refine the list. The character * signifies any combination of letters, and the ? character signifies any letter.An empty filename string will evoke a full list of files.

The RAM disk is for used to store internal files (to which you do not have access), and stores the record data files (*.rec). The Flash disk stores the user programs (*.prg) and CAM files (*.cam). The contents of the Flash disk are preserved at power off, but the contents of the RAM disk are lost.

Syntax

Dir$ (<filename>)

Availability

Since Version 4.5.3

Type

<return value>: String
<filename>: String

Range

<return value>: String
< filename>: String

Scope

Terminal

Limitations

Read only

Examples

PrintDir$(“”)                                   ‘Returns all files on disk

Dim TaskNames as string = “*.prg”

Print Dir$ (TaskNames)                   ‘Returns all files having extension PRG

See Also