Directory Statement (Compact 2013)
3/26/2014
This statement defines the subdirectories for the run-time image.
Syntax
Directory("dir_name"):[-Directory("dir_name")]
[-File("target_filename", "source_location")]
Parameters
- Directory(" dir_name"):
This parameter specifies a directory name. "\" specifies a root directory.
- -Directory(" dir_name")
This parameter specifies the path for directories and shortcuts.
-File(" target_filename", " source_location")
This parameter defines a target file name and source location in the specified directory. Use it to copy files from ROM, as defined by the Windows directory, to any directory created by the Directory statement.This parameter can have the following values:
- target_filename
This value specifies the target file name as it should appear on the device when it boots. - source_location
This value specifies the path and file name of the file as it is stored in ROM before the device boots. All files in ROM are located in the \Windows directory.
- target_filename
Example
The following example shows how the directory statement is used to create the following files and directories:
\Program Files\Windows Explorer.lnk
\Program Files\Accessories\
\My Documents\My doc.Txt
Directory("\Program Files):-File("Windows Explorer.lnk",
"\Windows\explore.lnk")
Directory("Program Files"):-Directory("Accessories")
Directory("\My Documents"):-File("My doc.txt",
"\Windows\My doc.txt")