Page 1 of 1

delete folder after closed

Posted: Sun Sep 02, 2012 4:18 am
by sandboxietester
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

Posted: Sun Sep 02, 2012 7:06 am
by Guest10
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.

Posted: Sun Sep 02, 2012 2:49 pm
by sandboxietester
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?

Posted: Sun Sep 02, 2012 3:43 pm
by daabraham270
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>

Posted: Sun Sep 02, 2012 4:20 pm
by Guest10
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.

Posted: Sun Sep 02, 2012 4:29 pm
by sandboxietester
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

Posted: Sun Sep 02, 2012 4:37 pm
by tzuk
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.