Author Topic: Any way to run a newly-built program in sandbox?  (Read 3519 times)

Offline sophron

  • Single posting newcomer
  • *
  • Posts: 7
Any way to run a newly-built program in sandbox?
« on: September 21, 2011, 06:07:01 am »
A newly-built (for example) a.exe will run in sandboxie, if I use the following command:
"C:\Program Files\Sandboxie\Start.exe" /box:DefaultBox a.exe

Is there any way I can automate this process in the C::B IDE?
ie. when I press the "run" or the "start to debug" button, the "a.exe" will run in sandbox.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Any way to run a newly-built program in sandbox?
« Reply #1 on: September 21, 2011, 08:13:33 am »
Have you tried to put the C:\Program Files\Sandboxie\Start.exe in the executable path and /box:DefaultBox a.exe in project -> set arguments?
I doubt it will be debug-able, but the running should work.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline sophron

  • Single posting newcomer
  • *
  • Posts: 7
Re: Any way to run a newly-built program in sandbox?
« Reply #2 on: September 21, 2011, 08:53:29 am »
Sorry oBFusCATed, what does "the executable path" mean?
the folder containing "a.exe"? the windows environment variable PATH? or some specific setting in the C::B?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Any way to run a newly-built program in sandbox?
« Reply #3 on: September 21, 2011, 09:42:43 am »
Specific setting in C::B's project (Project -> Properties to be exact)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]