Thursday, September 17, 2009

How to change the File structure tree into OS image

Once you are done with Emulator OS image successfully then you might feel to do some more changes in the default “things”. There are many more things you can customize. One of them is altering the file system; means you want to create some customize Folder structure. I have tried to do same in below exercise........

You can do this my modifying the .dat files. Read about first .dat file in PB. File system (.dat) files, specifically Platform.dat and Project.dat, contain settings to initialize the RAM file system.

For example you want to add some folders in “My Documents” as:




Open Project.dat file and add as given below:

Root:-Directory("Program Files")
Root:-Directory("My Documents")
Directory("\Program Files"):-Directory("ASSET")
Directory("\My Documents"):-Directory("Project Documents")
Directory("\My Documents"):-Directory("Internal Documents")
Directory("\My Documents\Internal Documents"):-File("MyFile.txt", "\Windows\Myfile.txt")

root:[-Directory(“”)] [-File(“”, “”)]

Where is the name of the directory, is the final name of the file that is copied from the \Windows directory, and is the name of the initial file in the \Windows directory.

Now do a “Copy Files to Release Directory”. It will first clear your build folder and then will copy all the bib, reg, dat and other required files. Then do the “Make Run Time Image”. Once your image is up, you could find see you new folder tree structure.

No comments:

Post a Comment