bassmastergg wrote: ↑Fri Jun 16, 2017 9:30 pm
I have been creating a little program to use as a sandbox deletion tool which in essence allows a sandbox to be loaded from an initial snapshot. It works for the most part but I am having issues with saving deletions in the snapshot. The deleted item will re-appear after the snapshot is loaded. I am assuming because sandbox deletions are stored elsewhere.
If an file inside of the sandbox is deleted by a sandboxed program, and there is no file with that same name in the corresponding location outside of the sandbox, then that file should truly be deleted from the sandbox.
I tested that and the file was truly deleted.
If a file with the same name exists in the corresponding location outside of the sandbox, then the file is not truly deleted inside of the sandbox, but is given a file "Creation" date that pre-dates DOS: an illegal "Creation" date, which has the effect of hiding that file when a sandboxed program looks at the files in that folder:
May 23, 1986
An UNsandboxed program will still see the file in the sandbox folder, with its new (and illegal) "Creation" date and it's old "Modified" date.
If I remember correctly, Sandboxie is also supposed to make that deleted file a 0 byte file in the sandbox.
That does not appear to be happening in my test.
File outside of the sandbox:
C:\Users\(username)\Downloads\dbug.txt
File inside of a sandbox, in a corresponding location:
C:\Sandbox\(username)\TestBox\user\current\Downloads\dbug.txt
If a sandboxed program deletes dbug.txt (in the sandbox), it is marked with an illegal "Creation' date, to hide it from sandboxed programs.
However, as I said above, I seem to recall that the file inside of the sandbox should also be set to 0 bytes, but I don't see that happening in my test.
I talked about this in my second post in this old thread (from 2012), when I was still using Windows XP:
viewtopic.php?f=11&t=13353
including the part where the deleted file in the sandbox should be set to a 0 byte file.