[.03] Command Line /wait Parameter Doesn't Work

Listing issues addressed in beta version 4.05
Locked
sycondaman
Posts: 2
Joined: Wed Jul 31, 2013 8:49 pm

[.03] Command Line /wait Parameter Doesn't Work

Post by sycondaman » Wed Jul 31, 2013 9:01 pm

OS: Windows 7 64-bit Enterprise
Sandboxie Version: 4.04 64-bit

This is a relatively freshly installed machine with UAC disabled.

I opened a command prompt to C:\Program Files\Sandboxie and executed the following command to test:

Start.exe /wait cmd.exe

The result was an opened command prompt but Start.exe returned immediately.

Let me know if you can repro or have any debugging ideas, thanks!

BUCKAROO
Posts: 206
Joined: Sun Oct 24, 2010 3:13 am

Post by BUCKAROO » Wed Jul 31, 2013 10:37 pm

Doesn't work for me. It was recently that I tried /wait with a box designation, can't work it with or without.

CHDIR /D "%ProgramFiles%\Sandboxie"
SET "CHOICE=(ECHO.)&CHOICE /M "EXIT"&(IF !ERRORLEVEL!==1 PAUSE&EXIT)&PAUSE"
".\Start.exe" /wait /box:DefaultBox "%ComSpec%" /T:6E /E:ON /V:ON /K "%CHOICE%"
".\Start.exe" /box:DefaultBox /wait "%ComSpec%" /T:E6 /E:ON /V:ON /K "%CHOICE%"
ECHO echo echo
@

To sidetrack, pasting that into a cmd prompt sometimes spat the following error for one missing console:
SBIE2205 Service not implemented: ConsoleInit (C00000D4)

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

Post by tzuk » Thu Aug 01, 2013 5:02 am

Thanks for pointing it out. Will be fixed in version 4.05.03.

Remember that you also need the built-in Start command to wait for Start.exe if you want completely sequential execution.

Code: Select all

start /wait Start.exe /wait cmd.exe
tzuk

BUCKAROO
Posts: 206
Joined: Sun Oct 24, 2010 3:13 am

Post by BUCKAROO » Thu Aug 01, 2013 6:44 am

Thanks. And it all works as expected if BOXED. :)

@
"%ComSpec%" /E:ON /V:OFF

SET "SbieExec=START "" /WAIT "%ProgramFiles%\Sandboxie\Start.exe" /wait"
SET "CHOICE=(ECHO.)&CHOICE /M "EXIT"&(IF !ERRORLEVEL!==1 TIMEOUT /T 5&EXIT)&PAUSE"

PUSHD path common to the following programs
%SbieExec% /box:DefaultBox "%ComSpec%" /T:6E /E:ON /V:ON /K "%CHOICE%"
%SbieExec% /box:DefaultBox "%ComSpec%" /T:E6 /E:ON /V:ON /K "%CHOICE%"
ECHO echo echo
POPD

EXIT
@

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

Post by tzuk » Thu Aug 01, 2013 7:00 am

And with version 4.05.03 that I just released, it should once again work outside the sandbox.
tzuk

sycondaman
Posts: 2
Joined: Wed Jul 31, 2013 8:49 pm

Post by sycondaman » Thu Aug 01, 2013 12:55 pm

Thanks so much!

Locked

Who is online

Users browsing this forum: No registered users and 0 guests