Closed hulinfan closed 3 months ago
I don't know the reason, but you can try the following methods.
AutoExec=cmd /c "del "<drive>:\<path>\<file>""
OR
AutoExec=cmd /c "type NUL > "<drive>:\<path>\<file>""
See AutoExec
AND/OR
Right-click the sandbox > Sandbox Options > Snapshot Manager > Take Snapshot
Sandbox\Box\snapshot-x
using unsandboxed Windows Explorer.See BoxSnapshots
I don't know the reason, but you can try the following methods.
For Sandboxie-Plus:
You can delete the file or create an empty copy of it from the sandbox using the Triggers feature.
delete:
AutoExec=cmd /c "del "<drive>:\<path>\<file>""
OR
empty copy:
AutoExec=cmd /c "type NUL > "<drive>:\<path>\<file>""
See AutoExec
AND/OR
You can use the Snapshot feature.
- Run sandboxed CMD.
- Delete the file (or change the contents of the file).
- Close sandboxed CMD.
Right-click the sandbox > Sandbox Options > Snapshot Manager > Take Snapshot
Unless you delete the snapshots, the files in that snapshot remain valid even if the contents of the box are deleted.
- You can add files to the appropriate locations under
Sandbox\Box\snapshot-x
using unsandboxed Windows Explorer.See BoxSnapshots
Thanks offhub. Your information helps me a lot.
I would like to hide some files outside the sandbox. For example:
But it doesn't work. I check the docs about write file path:
https://sandboxie-website-archive.github.io/www.sandboxie.com/WriteFilePath.html
Got that the file is treated as if it matches a ClosedFilePath.
My question is, it seems not technical hard to implement, but why 'WriteFilePath' not supports file? What's the aspect i've been missing?