StartProgram / AutoExec

If it doesn't fit elsewhere, it goes here
Post Reply
Ruhe
Posts: 803
Joined: Thu Jul 03, 2008 8:56 am
Location: Germany
Contact:

StartProgram / AutoExec

Post by Ruhe » Tue Aug 16, 2011 9:35 am

StartProgram and AutoExec only run in the sandbox.
Is there a way to start a program that runs outside of the sandbox?

What I want to do with my Firefox sandbox:

1. Remove directory "c:\Users\<user>\AppData\Roaming\Macromedia\Flash Player" outside (real file system) of the sandbox
2. Start Firefox sandboxed

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

Post by SnDPhoenix » Tue Aug 16, 2011 12:51 pm

Perhaps use a batch (.bat) file stored outside the sandbox which performs both tasks?
A batch file with these commands should do the job. :)
rmdir /s /q "C:\Users\<user>\AppData\Roaming\Macromedia\Flash Player"
start firefox
The above batch commands assume you have Firefox forced to run in your Firefox sandbox, otherwise you need to replace "start firefox" with the Sandboxie cmd parameter instead, something like this. ;)
rmdir /s /q "C:\Users\<user>\AppData\Roaming\Macromedia\Flash Player"
"C:\Program Files\Sandboxie\Start.exe" /box:FirefoxBox firefox.exe
Of course remember to replace <user> with your username first. Hope that helps. :P
Windows 7 SP1 x64, Sandboxie v3.70 x64 with Experimental Protection, GnuPG, OTR (Off-The-Record), Sticky Password, My Brain.

Ruhe
Posts: 803
Joined: Thu Jul 03, 2008 8:56 am
Location: Germany
Contact:

Post by Ruhe » Tue Aug 16, 2011 3:31 pm

Thanks. Of course I do it like this already.

But my question was how to run this automatically by Sandboxie before it runs Firefox in a sandbox.

lwc
Posts: 332
Joined: Tue Dec 19, 2006 6:37 am

Post by lwc » Tue Aug 16, 2011 3:46 pm

The answer is to join the feature request.

Ruhe
Posts: 803
Joined: Thu Jul 03, 2008 8:56 am
Location: Germany
Contact:

Post by Ruhe » Tue Aug 16, 2011 4:02 pm

Done :wink:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest