Close SPECIFIC program inside a sandbox [SOLVED]

If it's not about a problem in the program
Post Reply
xago
Posts: 9
Joined: Fri Sep 13, 2013 5:17 pm

Close SPECIFIC program inside a sandbox [SOLVED]

Post by xago » Fri Feb 17, 2017 12:48 am

I'm trying to close or terminate a single program inside a sandbox that has multiple programs running via a start command. The only commands listed in the sandboxie help page are

"C:\Program Files\Sandboxie\Start.exe" /terminate
"C:\Program Files\Sandboxie\Start.exe" /box:TestBox /terminate

however these commands will terminate every program in a sandbox rather than a specific one. I was hoping for something to exist such as

"C:\Program Files\Sandboxie\Start.exe" /box:TestBox /terminate notepad.exe

that would close just notepad.exe and leave the other programs running.

Is this currently possible via any means?

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2337
Joined: Mon Nov 07, 2016 3:10 pm

Re: Close SPECIFIC program inside a sandbox rather than ALL

Post by Barb@Invincea » Fri Feb 17, 2017 10:58 am

Hello xago,

You can right-click on the program under Sandboxie Control and select "Terminate Program".

From a Sandboxed command prompt you can use taskkill, here's an example:
taskkill /f /im notepad.exe

Regards,
Barb.-

BoxedSunshine
Posts: 17
Joined: Fri Jan 20, 2017 8:49 pm

Re: Close SPECIFIC program inside a sandbox rather than ALL

Post by BoxedSunshine » Fri Feb 17, 2017 4:40 pm

Hi, hopefully this'll help. :)

Assumed sandbox name:
BOXpad

Code: Select all

"C:\PROGRAM FILES\SANDBOXIE\Start.exe" /box:BOXpad "notepad.exe"

Code: Select all

"C:\PROGRAM FILES\SANDBOXIE\Start.exe" /box:BOXpad /wait cmd /c & "C:\PROGRAM FILES\SANDBOXIE\Start.exe" /box:BOXpad taskkill /f /im notepad.exe
Sunshine in a box, for when the storm hits.

xago
Posts: 9
Joined: Fri Sep 13, 2013 5:17 pm

Re: Close SPECIFIC program inside a sandbox rather than ALL

Post by xago » Fri Feb 17, 2017 7:13 pm

Thanks, taskkill works just fine

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest