User forums > Using Code::Blocks

Any way to run a newly-built program in sandbox?

(1/1)

sophron:
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.

oBFusCATed:
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.

sophron:
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?

oBFusCATed:
Specific setting in C::B's project (Project -> Properties to be exact)

Navigation

[0] Message Index

Go to full version