Global delete function
Thank you for the revised version it is working fine however (here I go again) the only problem I am facing now are apps are not getting terminated quickly enough.
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 delaywraithdu 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...
-
- Posts: 2690
- Joined: Tue Dec 26, 2006 5:44 pm
- Location: West Florida
Nice job wraith, now it worked for me flawlessly.
Also I used the TerminateProcess API instead as I think it is more stable.
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...
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...
Also I used the TerminateProcess API instead as I think it is more stable.
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...
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...
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
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
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.
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
Who is online
Users browsing this forum: No registered users and 1 guest