OpenFilePath Problem

Please post your problem description here

Moderator: Barb@Invincea

Post Reply
plutokang

OpenFilePath Problem

Post by plutokang » Mon Apr 09, 2007 2:03 pm

Hallo,
when the ini file is added like this:
OpenFilePath=C:\prog\Downloads
file changes to this path go through, that is OK.

But if there also exists a path in win explorer (not in OpenFilePath) C:\prog\DownloadsTest
file changes to this path go through too, and that is wrong.

I changed
OpenFilePath=C:\prog\Downloads to
OpenFilePath=C:\prog\Downloads\
(with backslash at the end)
and it worked OK.
File changes to C:\prog\DownloadsTest
don't go through anymore.

Small program bug?
Thank you.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Mon Apr 09, 2007 3:35 pm

No, not bug. If you read the documentation for OpenFilePath, it clears states, an asterisk is added at the end.

OpenFilePath=C:\prog\Downloads

becomes

OpenFilePath=C:\prog\Downloads*
tzuk

plutokang

Post by plutokang » Mon Apr 09, 2007 10:26 pm

Thank you.
So there are 2 possibilities:
OpenFilePath=C:\*prog\Downloads OR
OpenFilePath=C:\prog\Downloads\
The last line becomes C:\prog\Downloads\*

Correct?
Thanks

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Tue Apr 10, 2007 6:33 am

Yes. Adding the final backslash is a good idea. I will make the documentation reflect this. (By the way, I had the same discussion two days ago, with someone else, here on the forum.)
tzuk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest