Does folders in boxed program override the folder with the same name in host entirely?
Posted: Sun Apr 14, 2024 6:32 am
Hello, I have a question about how file virtualization works in the context of my folder structure:
Here's the situation: original.exe requires both resource1.dat and resource2.dat to function properly. I have created a boxed.exe from original.exe, which packs a different version of resource2.dat (same name, different content).
My intention is that when running boxed.exe, it should use the updated resource2.dat from its own directory, while still accessing the unchanged resource1.dat from the original directory. However, what I observed is that the entire ./resources directory seems to be replaced by %DEFAULT FOLDER%/resources, meaning boxed.exe can only see the updated resource2.dat and cannot find resource1.dat.
I am trying to understand whether this observation is accurate, or if I might have made an error. If this is how the environment is designed to work, are there any workarounds that would allow boxed.exe to access both the updated resource2.dat and the untouched resource1.dat? Thank you for your help.
Code: Select all
.
├── resources/
│ ├── resource1.dat
│ └── resource2.dat
├── original.exe
└── boxed.exe/
└── %DEFAULT FOLDER%/
└── resources/
└── resource2.dat
My intention is that when running boxed.exe, it should use the updated resource2.dat from its own directory, while still accessing the unchanged resource1.dat from the original directory. However, what I observed is that the entire ./resources directory seems to be replaced by %DEFAULT FOLDER%/resources, meaning boxed.exe can only see the updated resource2.dat and cannot find resource1.dat.
I am trying to understand whether this observation is accurate, or if I might have made an error. If this is how the environment is designed to work, are there any workarounds that would allow boxed.exe to access both the updated resource2.dat and the untouched resource1.dat? Thank you for your help.