Global delete function

Ideas for enhancements to the software
Shield
Posts: 29
Joined: Wed Dec 10, 2008 5:45 am

Post by Shield » Sat Dec 13, 2008 3:15 am

:?

I tried both terminate=1 and terminate=2.

Only Box2 terminates and deletes. Box5 stays untouched.

I noticed the ini file this

Box2=1
Box5=0

Not sure what these values mean but I changed the 0 to a 1 however I end up with the same result regardless whether terminate=1 or 2

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Sat Dec 13, 2008 11:45 am

So Box5 is your sandbox title? And it's not emptied even if you check the box next to it?

Shield
Posts: 29
Joined: Wed Dec 10, 2008 5:45 am

Post by Shield » Sat Dec 13, 2008 12:12 pm

That's correct. It does not get emptied, let alone terminated.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Sat Dec 13, 2008 12:12 pm

Fixed. Uploaded v1.0.0.4.

My bad, too many loops with the same variable. Doh :(

Shield
Posts: 29
Joined: Wed Dec 10, 2008 5:45 am

Post by Shield » Sat Dec 13, 2008 12:56 pm

Thank you for the revised version it is working fine however (here I go again) :roll: the only problem I am facing now are apps are not getting terminated quickly enough.
wraithdu wrote:Now, there's a more aggressive way to go about this... I could use the /listpids command to get running processes and use another app like taskkill to forcibly kill them instead of the /terminate command. I'd rather not though...
Okay , that's fine if you prefer not to use that option, but would you consider allowing us the choice to use these aggressive apps like taskkill or pskill..etc as I think it is a more viable solution than adding extra delay

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sat Dec 13, 2008 1:19 pm

Nice job wraith, now it worked for me flawlessly. :D
Also I used the TerminateProcess API instead as I think it is more stable. :P

Only one suggestion I have though...
You should change the default location of the ini to the Windows folder instead of the Sandboxie folder, as by default the ini is stored in the Windows folder... :P

Hmm wait a minute... didn't tzuk mention the ini location has been changed to the Sandboxie folder and that if your ini file is inside the Windows folder, it is only because you have been running older versions of Sandboxie on your machine, older versions which used the Windows folder...?
Damn I cant remember... :P

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Sat Dec 13, 2008 4:21 pm

Honestly, I've been running with my INI in the Sandboxie folder for so long, I wouldn't have noticed if it changed or not.

@Shield
The current version uses the TerminateProcess() API by default, which is what taskkill does with the /f (force) option. So in essence it's the same thing. With either option, SBDelete gives each process 5 seconds to terminate. If your apps are taking longer than that to end....well I pity your computer. I can make that time user configurable though, for unfortunate souls such as yourself ;)

Shield
Posts: 29
Joined: Wed Dec 10, 2008 5:45 am

Post by Shield » Sat Dec 13, 2008 7:34 pm

:lol: I'd like that very much. I don't know how much similar they are but I read that utilities such as pskill are more aggressive and ruthless in terms of force killing apps

I'm using v3.32, which has my ini file stored in the Windows folder.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Sun Dec 14, 2008 3:30 am

See the new thread for all future versions.

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

Post by tzuk » Sun Dec 14, 2008 10:19 am

Not to discourage anyone but I think you're wasting your time with TerminateProcess. The /terminate option already asks SbieSvc to use TerminateProcess so you didn't accomplish anything that wasn't already there.

wraithdu, if you just wait for Start.exe to end, then by the time you wake up, then you know all programs are terminated. Then it's just a matter of waiting a couple more seconds to make sure the registry hive is unmounted and the registry files in the sandbox are released.
tzuk

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Sun Dec 14, 2008 10:50 am

Eh, it was no big deal, like 3 more lines of code. I figured that's what Start.exe did anyway...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest