Delete sandbox on shutdown

Ideas for enhancements to the software
tverweij
Posts: 9
Joined: Sat Jun 25, 2011 9:57 am

Delete sandbox on shutdown

Post by tverweij » Sun Aug 14, 2011 4:33 am

I would like the option "Delete sandbox on shutdown", causing the sandbox to be deleted when the computer is shutdown.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun Aug 14, 2011 2:29 pm

The feature request has been discussed in this topic:

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

tverweij
Posts: 9
Joined: Sat Jun 25, 2011 9:57 am

Post by tverweij » Wed Aug 24, 2011 2:31 am

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.

D1G1T@L
Posts: 577
Joined: Sun Apr 17, 2011 7:40 pm
Location: DefaultBox

Post by D1G1T@L » Wed Aug 24, 2011 7:53 pm

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.

thewul
Posts: 74
Joined: Tue Sep 20, 2011 12:15 am

Post by thewul » Sat Jun 23, 2012 10:54 am

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!
=

thewul
Posts: 74
Joined: Tue Sep 20, 2011 12:15 am

Post by thewul » Sat Jun 23, 2012 11:28 am

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.
=

NewUserX8G

Post by NewUserX8G » Mon Jun 25, 2012 3:05 pm

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)

thewul
Posts: 74
Joined: Tue Sep 20, 2011 12:15 am

Post by thewul » Wed Jul 04, 2012 12:42 am

Am running Windows 7 64bit
Am not sure where to look/how to solve this... :cry:

thewul
Posts: 74
Joined: Tue Sep 20, 2011 12:15 am

Post by thewul » Fri Jul 13, 2012 6:26 am

thewul wrote:Am running Windows 7 64bit
Am not sure where to look/how to solve this... :cry:

Can someone help??

TIA
=

Oh shucks, I'm old!

Does this work?

Post by Oh shucks, I'm old! » Fri Jul 13, 2012 8:07 pm

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.


BlackThought
Posts: 30
Joined: Thu Feb 25, 2010 8:50 am

Post by BlackThought » Fri Oct 19, 2012 1:27 am

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

Reporter
Posts: 6
Joined: Mon Nov 05, 2012 4:36 pm

Post by Reporter » Tue Nov 06, 2012 1:18 pm

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

XCLN
Posts: 5
Joined: Mon Jan 21, 2013 2:14 pm

Related: Stop all programs and delete all on Sandbx exit

Post by XCLN » Mon Jan 21, 2013 2:30 pm

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 .. )
-----------------------------------------------------------
Excellence in everything is everything

Guest10
Posts: 5127
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

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

Post by Guest10 » Mon Jan 21, 2013 2:52 pm

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.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Firefox, Thunderbird
Sandboxie user since March 2007

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest