Page 1 of 2

Delete sandbox on shutdown

Posted: Sun Aug 14, 2011 4:33 am
by tverweij
I would like the option "Delete sandbox on shutdown", causing the sandbox to be deleted when the computer is shutdown.

Posted: Sun Aug 14, 2011 2:29 pm
by tzuk
The feature request has been discussed in this topic:

http://www.sandboxie.com/phpbb/viewtopic.php?t=10639

Posted: Wed Aug 24, 2011 2:31 am
by tverweij
No it isn't.

That thread is about the problem that the sandbox is not emptied on shutdown when the option "delete the sandbox when the last program ends" is activated.

I do not want to empty the sandbox when no programs are running in it.

I only want it to be emptied when I shutdown the system - not before.

But I already found the solution:

I made a cmd script "DeleteSandBox.cmd" with the command RMDIR /s /q "C:\Sandbox\Administrator\DefaultBox"
And this cmd file is executed at system startup in the Windows Task Scheduler.

This way I have always a clean sandbox at the start of a new windows session.

Posted: Wed Aug 24, 2011 7:53 pm
by D1G1T@L
The problem with having such an option is that Windows will display the screen asking the user to terminate running programs (Sandboxie) before windows shuts down. Those who enable it will think that Sandboxie is making windows unresponsive when in fact its not the case ofcourse.

Deleting a sandbox on startup seems to be a better solution for the potential issue mentioned above. If its easy to implement, I guess its a nice bonus, but not really needed.

Posted: Sat Jun 23, 2012 10:54 am
by thewul
tverweij wrote:No it isn't.

That thread is about the problem that the sandbox is not emptied on shutdown when the option "delete the sandbox when the last program ends" is activated.

I do not want to empty the sandbox when no programs are running in it.

I only want it to be emptied when I shutdown the system - not before.

But I already found the solution:

I made a cmd script "DeleteSandBox.cmd" with the command RMDIR /s /q "C:\Sandbox\Administrator\DefaultBox"
And this cmd file is executed at system startup in the Windows Task Scheduler.

This way I have always a clean sandbox at the start of a new windows session.
Agree it would be nice if it was a built in option ... :wink:

Thanks for your tip/workaround.

I'll give it a try!
=

Posted: Sat Jun 23, 2012 11:28 am
by thewul
Bad luck, it did not work. Can't figure out how to do this.
As said, it should be an option within Sandboxie, instead of users trying to figure this out themselves.
I am not familiar with scripts.

I created a text file
containing just 1 line

RMDIR /s /q "G:\Sandbox\MyName\DefaultBox"
saved it as: DeleteSandBox.cmd

Then went on with the steps outlined in http://windows.microsoft.com/en-us/wind ... ule-a-task
and pointed to above file.

Nothing happened.
=

Posted: Mon Jun 25, 2012 3:05 pm
by NewUserX8G
If XP Pro, use Group Policy.

Local Computer Policy\Computer Configuration\Windows Settings\Scripts
(Startup/Shutdown)

Local Computer Policy\User Configuration\Windows Settings\Scripts
(Logon/Logoff)

Posted: Wed Jul 04, 2012 12:42 am
by thewul
Am running Windows 7 64bit
Am not sure where to look/how to solve this... :cry:

Posted: Fri Jul 13, 2012 6:26 am
by thewul
thewul wrote:Am running Windows 7 64bit
Am not sure where to look/how to solve this... :cry:

Can someone help??

TIA
=

Does this work?

Posted: Fri Jul 13, 2012 8:07 pm
by Oh shucks, I'm old!
rd G:\Sandbox\MyName\DefaultBox /s /q


I'm on XP pro though.

Worked for me saved as a .bat file with a shortcut created and placed in my startup folder.

You might be interested in this thread.

Posted: Fri Jul 13, 2012 8:47 pm
by Oh shucks, I'm old!

Posted: Fri Oct 19, 2012 1:27 am
by BlackThought
If you have CCleaner you can include your sandboxie folder to be deleted upon login.

Image

I have it set to delete the all subfolders/files and the parent folder "TEST"

Im on Win 7 64-bit if thats of any use :)

My logic, should be better to delete on boot vs delete before shutdown, i don't want windows to potentially hang and not shutdown because something cant be deleted

Posted: Tue Nov 06, 2012 1:18 pm
by Reporter
BlackThought wrote:If you have CCleaner you can include your sandboxie folder to be deleted upon login.

Image

I have it set to delete the all subfolders/files and the parent folder "TEST"

Im on Win 7 64-bit if thats of any use :)

My logic, should be better to delete on boot vs delete before shutdown, i don't want windows to potentially hang and not shutdown because something cant be deleted
Good idea. :D

Related: Stop all programs and delete all on Sandbx exit

Posted: Mon Jan 21, 2013 2:30 pm
by XCLN
Hi

Is there a simple way to implement this feature? Basically to use Sandboxie as a safe browser with no memory after each Snadboxie exit, not each windows restart.

I know it is sort of a shame not to use its full capabilities, but sometimes simple is safer .. I'd set the default that way, and if I wanted to save some downloads etc. would start the non simple version.

Right now it is a pain to do this manually, stop all running processes, delete all contents ..

thanks if anyone has worked out the details and can provide a short how to (scripts, shortcuts, commands options .. )

Re: Related: Stop all programs and delete all on Sandbx exit

Posted: Mon Jan 21, 2013 2:52 pm
by Guest10
XCLN wrote:Is there a simple way to implement this feature? Basically to use Sandboxie as a safe browser with no memory after each Snadboxie exit, not each windows restart.
Auto-delete is already available for each sandbox, in Sandbox Settings. If you don't use any browser settings that will result in items being saved out of the sandbox, then everything will be deleted in the sandbox when the programs end.
You might want to turn off Immediate Recovery so as not to be prompted when some file appears in one of the Quick Recovery folders, if you don't plan on saving anything out of the sandbox.
You could also delete all folders listed as Recovery Folders, if you don't want to be bothered with anything that might have been saved or downloaded into those folders.

If you start a sandboxed session by using your browser, and other programs are started that use the same sandbox, it's possible that one of those other programs might continue to run - preventing auto delete from initiating.
You can add those .exe programs to a list of Lingering Programs or you can set your browser's .exe program as a Leader Program, and ending it will end all other programs that are using that same sandbox.

All of the above are listed as settings under Sandbox Settings, for each sandbox.