delete folder after closed

If it's not about a problem in the program
Post Reply
sandboxietester

delete folder after closed

Post by sandboxietester » Sun Sep 02, 2012 4:18 am

Hi,

i'm trying out sandboxie and i like it so far
But i don't understand the settings clearly

I'm using spotify in a sandbox and it uses a lot of space in user\current\AppData\Local\Spotify\Storage
i would like it to delete this folder on closing spotify, but i do not want it deleting my whole sandbox (which includes spotify installation)

i found the recovery settings, but i cannot use them, because i have to choose a folder on my real system
and this folder does not exist (only in sandboxie)

thank you in advance

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

Post by Guest10 » Sun Sep 02, 2012 7:06 am

I'm not aware of any setting within the Sandboxie program that will delete contents of the folder, but you can use an unsandboxed program to delete the contents after you exit the sandboxed programs.

For example, CCleaner can be run with that sandbox folder listed under its Options > Include.
Or a .cmd file could be run to delete the contents of the folder in the sandbox.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

sandboxietester

Post by sandboxietester » Sun Sep 02, 2012 2:49 pm

of course i could write a batch file
but starting an extra program or script after using a sandbox is not an confortable way

anyone any ideas?

daabraham270
Posts: 1
Joined: Thu Aug 30, 2012 1:21 am

Post by daabraham270 » Sun Sep 02, 2012 3:43 pm

this is very necessary to delete the folder

<a href="http://www.oakfurniturefdf.co.uk/">cheap oak beds</a>
<a href="http://www.oakfurniturefdf.co.uk/">oak furniture</a>
<a href="http://www.oakfurniturefdf.co.uk/">oak bed</a>
Last edited by daabraham270 on Thu Sep 06, 2012 5:37 am, edited 2 times in total.

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

Post by Guest10 » Sun Sep 02, 2012 4:20 pm

I don't know what method you are using to start the program, but it might not be hard to write a .cmd file that runs it and also deletes the folder contents on exit.

@echo off
"C:\Sandbox\Paul\Notepad\drive\C\Program Files\notepad.exe"
del "C:\Sandbox\Paul\Notepad\user\current\Application Data\My Data\*.*" /s /f /q

Then run the .cmd file from a shortcut, and choose a Minimized Window for it.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

sandboxietester

Post by sandboxietester » Sun Sep 02, 2012 4:29 pm

the problem is not a single batch file
it is the amount of batch files after all the different boxes which includes an installation
everytime i want to keep the installation but delete the settings/cache/temp files

i don't want to install the programmes on my computer, i want to install them in a sandbox
and if i delete the whole box i will have to install it again
or start a specific batch files after running

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

Post by tzuk » Sun Sep 02, 2012 4:37 pm

Maybe you could have a single batch file that you run as part of system startup (for example in the "Startup" group in Start menu) and it deletes the various folders that you don't want to keep, in all of your sandboxes.

If once per start up is not enough, you can even use schedule a tasks to run the script several times a day.
tzuk

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests