File System File (Compact 2013)

3/26/2014

A file system (.dat) file defines the directory and file locations for the initial settings on a target device.

When you cold boot your run-time image on the device, Filesys.exe uses these .dat files to create the directories, links, and files in the root file system on the device.

When updating the Project.dat file to define directory and file locations, you can specify any root directory name other than the Windows directory and its subdirectories.

In addition, you can copy or link to a file in the ROM Windows directory. The file or link is created in the root file system that is part of the object store in the directory specified by the .dat file.

The following code example shows typical entries in a Project.dat file.

root:-Directory("My Documents")
root:-Directory("Program Files")
Directory("\Program Files"):-Directory("My Projects")
Directory("\Program Files"):-Directory("Accessories")
Directory("\Program Files"):-Directory("Communication")
Directory("\Program Files\My Projects"):-File("My Project Program", "\Windows\Myproj.exe")
root:-File("\control.lnk", "\Windows\control.lnk")

The root: statement defines the root directories for the run-time image. For more information, see Root Statement.

The directory: statement defines defines the subdirectories for the run-time image. For more information, see Directory Statement.

See Also

Reference

Run-Time Image Configuration Files