just a single file

If it doesn't fit elsewhere, it goes here
Post Reply
Unknown_User_506
Posts: 0
Joined: Wed Dec 31, 1969 7:00 pm

just a single file

Post by Unknown_User_506 » Sat Dec 30, 2006 10:36 pm

Hi,
I have an application which writes repeatedly to a single file many times a second to keep a running total of how far the main program is through a particulr job. The main program writes a few gigabytes of data while it is in use, but this little file just acts as a running progress bar.

Say the file is called "p" (which it is!) and that the only thing this file contains is an integer from 0 to a few hundred thousand. How do I get sandboxie to replace the slow step of repeatedly writing to the p file, while allowing the main program to write to disk as normal, which is the useful data I need.

thanks for any help you can give.

Guest

Post by Guest » Sat Dec 30, 2006 10:48 pm

You can do this by allowing your program (whatever it is) to write directly to the file "p" outside of the virtual environment. That's not very risky, since you can write a rule that only allows that particular program to write to that particular file in a particular directory.

Assume your program is call myprogram.exe, that the target index file is labeled "p" and that you want to have "p" reside in C:\temp. (These are just examples, obviously, and you can change them to meet your specific needs.)

First make sure your program, which I've labed as myprogram.exe, is not running. Then open the Sandboxie ini file and add the following code under [DefaultBox]:

Code: Select all

OpenFilePath=myprogram.exe,C:\temp\p
... replacing my example labels with actuals.

Be sure you refresh the config file after you edit it as above.

Hope that helps.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest