Dir( )
| Action: | Dir
can be used to enumerate the files in a directory. Dir returns a string
representing the name of a file, directory, or folder that matches a
specified pattern. To retrieve subsequent entries in a directory, specify
an empty string (“”) as the path. |
||||
| Syntax: | DIR
("path", index) |
||||
| Parameters: |
Path
Index
|
||||
| Returns: |
Returns a string representing the name of a
file, directory, or folder that matches a specified pattern. An
empty string ("") is returned if path is not found or to indicate that the end of the current
enumration was reached. Dir also sets the value of @ERROR :
|
||||
| Example: |
$FileName
= Dir("C:\TEMP") |