화요일, 7월 22, 2008

.dat - 초기 directory 구조 설정

object store 영역의 directory layout를 설정하고, ROM file을 그 diretory layout 상 특정한 곳으로 copy한다. 여기서 ROM file이란 OS image에 포함되는 file을 이야기 하는데 이 file은 object store의 \Windows directory에 위치하게 된다. 이런 file을 \Windows가 아닌 다른 곳에 위치하게 하려면 이 .dat file을 사용해야 한다. 하지만 이것은 어디까지나 \Windows 아래에 있는 file을 다른 위치로 copy만을 할 뿐이지 move하지는 않는다. (이 말은 큰 size의 file에 대해서 적용한다면 object store 영역을 소모시킨다는 이야기로 받아들여 지다.)

root:-Directory("name")
root directory 아래에 name이라는 directory를 만든다.

root:-Permdir("name")
root directory 아래에 name이라는 permanent directory (RemoveDirectory API로 remove될 수 없다)를 만든다.

Directory("\path"):-Directory("name")
\path 위치 아래에 name이라는 subdirectory를 만든다. name 아래에 name2라는 subdirectory를 또 만드려면 이 directive다음에 다음을 입력한다.
Directory("\path\name"):-Directory("name2")
subdirectory의 subdirectory는 계속 위와 같은 방법으로 하면 된다.

Directory("\path"):-File("targetfile", "sourcefile")
sourcefile는 ROM file의 path와 이름을 나타내고, 이 file을 targetfile이라는 이름을 바꿔서 \path 아래로 copy한다.

댓글 없음: