Trust No Program
This topic is locked: you cannot edit posts or make replies.
[.03] Sandboxie.ini Command Line Utility
tzuk


Joined: 22 Jun 2004
Posts: 14999
Reply with quote
Version 3.67.03 adds a small command line utility SbieIni.exe which can be used to query and update the Sandboxie.ini configuration file from the command line. It should be fairly straightforward to use and it includes built-in help when started without any parameters. One possible use is in the creation of more complicated scripts to adjust Sandboxie configuration in various ways.

_________________
tzuk
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
Nice addition!
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 14999
Reply with quote
I thought you might like it Smile
View user's profileSend private message
Wander


Joined: 06 Dec 2011
Posts: 3
Reply with quote
Well damn.. and that 2 days after I wrote a go lang package for it myself Laughing
View user's profileSend private message
lwc


Joined: 19 Dec 2006
Posts: 299
Reply with quote
When you say "update", is it like Reload Configuration, which does not take effect on sandboxed programs that are already running?
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 14999
Reply with quote
Yes.
View user's profileSend private message
Using the "set" parameter
Guest10


Joined: 27 Apr 2008
Posts: 4340
Location: Ohio, USA
Reply with quote
[ZZ]
Enabled=y
ConfigLevel=7
RecoverFolder=%Personal%
RecoverFolder=%Favorites%
RecoverFolder=%Desktop%

I know that I can add "C:\Downloads" as a Recover Folder using either of these:
sbieini insert ZZ RecoverFolder C:\Downloads
sbieini append ZZ RecoverFolder C:\Downloads

The "set" parameter needs to be used with care:
sbieini set ZZ RecoverFolder C:\Downloads

I assume that this is the expected result:
[ZZ]
Enabled=y
ConfigLevel=7
RecoverFolder=C:\Downloads

SbieIni set <section> <setting> <value>
- replaces a setting with a new value. If value is omitted, the setting will be removed entirely.

_________________
Paul
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 14999
Reply with quote
Yes, set is designed to completely replace a value. The mechanism does not make a difference between single-line and multi-line settings. "set" is intended for use in single-list settings, "insert/delete" for multi-line settings. But there is no reason that you can't use "set" to overwrite multi-line settings.
View user's profileSend private message
[.03] Sandboxie.ini Command Line Utility
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 207,808,862 times since June 2004