Trust No Program
Reply to topic
Delete sandbox on shutdown
tverweij


Joined: 25 Jun 2011
Posts: 4
Reply with quote
I would like the option "Delete sandbox on shutdown", causing the sandbox to be deleted when the computer is shutdown.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
The feature request has been discussed in this topic:

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

_________________
tzuk
View user's profileSend private message
tverweij


Joined: 25 Jun 2011
Posts: 4
Reply with quote
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.
View user's profileSend private message
D1G1T@L


Joined: 17 Apr 2011
Posts: 577
Location: DefaultBox
Reply with quote
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.
View user's profileSend private message
thewul


Joined: 20 Sep 2011
Posts: 72
Reply with quote
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!
=
View user's profileSend private message
thewul


Joined: 20 Sep 2011
Posts: 72
Reply with quote
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/windows7/Schedule-a-task
and pointed to above file.

Nothing happened.
=
View user's profileSend private message
NewUserX8G
Guest

Reply with quote
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


Joined: 20 Sep 2011
Posts: 72
Reply with quote
Am running Windows 7 64bit
Am not sure where to look/how to solve this... Crying or Very sad
View user's profileSend private message
thewul


Joined: 20 Sep 2011
Posts: 72
Reply with quote
thewul wrote:
Am running Windows 7 64bit
Am not sure where to look/how to solve this... Crying or Very sad



Can someone help??

TIA
=
View user's profileSend private message
Does this work?
Oh shucks, I'm old!
Guest

Reply with quote
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.
Oh shucks, I'm old!
Guest

Reply with quote
http://www.sandboxie.com/phpbb/viewtopic.php?t=4745&postdays=0&postorder=asc&highlight=delete+sandbox+startup&start=0
BlackThought


Joined: 25 Feb 2010
Posts: 30
Reply with quote
If you have CCleaner you can include your sandboxie folder to be deleted upon login.



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 Smile

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
View user's profileSend private message
Reporter


Joined: 05 Nov 2012
Posts: 6
Reply with quote
BlackThought wrote:
If you have CCleaner you can include your sandboxie folder to be deleted upon login.



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 Smile

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. Very Happy
View user's profileSend private message
Related: Stop all programs and delete all on Sandbx exit
XCLN


Joined: 21 Jan 2013
Posts: 2
Reply with quote
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
View user's profileSend private message
Re: Related: Stop all programs and delete all on Sandbx exit
Guest10


Joined: 27 Apr 2008
Posts: 4343
Location: Ohio, USA
Reply with quote
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
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
Delete sandbox on shutdown
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 2  

Use the RSS feed to watch this topic for replies
  
  
 Reply to topic  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,101,064 times since June 2004