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!
[.03] Command Line /wait Parameter Doesn't Work
-
- Posts: 2
- Joined: Wed Jul 31, 2013 8:49 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)
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)
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.
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
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
@
@
"%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
@
Who is online
Users browsing this forum: No registered users and 0 guests