I am trying to write a batch file to be put in Send To that when SBP has started Sandboxie, executes the program to be started via commandline, if sbp has not been started starts sandboxie and then after sb is up executes the program to be sandboxed.
My difficulty is how do I check that sb is fully up and running when starting it via sbp.
Could you help?
Here is the batch:
Code: Select all
if exist "c:\Apps\SandboxiePortable\App\Sandboxie\Start.exe" goto verification
start "SBPortable" C:\Apps\SandboxiePortable\SandboxiePortable.exe
:Verification
if exist "c:\Apps\SandboxiePortable\App\Sandboxie\Start.exe" (
start "SB" c:\Apps\SandboxiePortable\App\Sandboxie\Start.exe %1
goto exit
) ELSE (
goto verification
)
pause
:exit
exit
Samuel