You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm opening this report here instead of the "extras" package because I think it's not package specific, but generic shim behaviour.
Current Behavior
When calling the executable without full path (therefore shim is used), it doesn't respect START /WAIT command.
Both WizTree and Everything support START /WAIT in order to force waiting until the execution is finished. Useful in batch files if you need to perform sequential commands and expect the exe to finish before. Example:
In this example, it doesn't wait for WizTree to finish indexing and immediately executes the next batch line.
Expected Behavior
The shim should pass the correct "context" to the executable, in order to wait until the task is done,
Additional context/output
The same happens with Everyting package, so it seems shim related.
Possible Solution
As of now, the only solution I've found is to bypass the shim and directly call the package executable, this way:
rem get WizTree.exe path
for /f "usebackq delims=" %%p in (`powershell -Command "& {scoop which wiztree} | Convert-Path"`) do set wiztreepath=%%p
START /WAIT "Indexing..." %wiztreepath% "C:" /export="C.csv"
echo DONE
System details
Windows version: 10. Also tested in 11
OS architecture: 64bit
PowerShell version:
Major Minor Build Revision
----- ----- ----- --------
5 1 19041 5007
Bug Report
I'm opening this report here instead of the "extras" package because I think it's not package specific, but generic shim behaviour.
Current Behavior
When calling the executable without full path (therefore shim is used), it doesn't respect START /WAIT command.
Both WizTree and Everything support START /WAIT in order to force waiting until the execution is finished. Useful in batch files if you need to perform sequential commands and expect the exe to finish before. Example:
In this example, it doesn't wait for WizTree to finish indexing and immediately executes the next batch line.
Expected Behavior
The shim should pass the correct "context" to the executable, in order to wait until the task is done,
Additional context/output
The same happens with Everyting package, so it seems shim related.
Possible Solution
As of now, the only solution I've found is to bypass the shim and directly call the package executable, this way:
System details
Windows version: 10. Also tested in 11
OS architecture: 64bit
PowerShell version:
Scoop Configuration
The text was updated successfully, but these errors were encountered: