09-02-2021, 07:05 AM
Hello!
Is there any way to wait for siw completion, when using in a batch script ?
Thank you !
Is there any way to wait for siw completion, when using in a batch script ?
Thank you !
(09-02-2021 07:05 AM)snsv Wrote: Hello!
Is there any way to wait for siw completion, when using in a batch script ?
Thank you !
(09-02-2021 08:01 AM)atopala Wrote:(09-02-2021 07:05 AM)snsv Wrote: Hello!
Is there any way to wait for siw completion, when using in a batch script ?
Thank you !
siw.exe is a launcher for siw64.exe, siw32.exe, or siw-arm64.exe
siw.exe doesn't wait for the child program to complete.
If you don't care about ARM64, you can use something like this:
@if "%ProgramFiles(x86)%" == "" (siw32 /log) else (
siw64 /log
)
(09-02-2021 08:20 AM)snsv Wrote:(09-02-2021 08:01 AM)atopala Wrote:(09-02-2021 07:05 AM)snsv Wrote: Hello!
Is there any way to wait for siw completion, when using in a batch script ?
Thank you !
siw.exe is a launcher for siw64.exe, siw32.exe, or siw-arm64.exe
siw.exe doesn't wait for the child program to complete.
If you don't care about ARM64, you can use something like this:
@if "%ProgramFiles(x86)%" == "" (siw32 /log) else (
siw64 /log
)
Thank you!
That works for a simple command line like siw64 /log, but when using with a more complex one, the batch doesn't wait for execution.
For example with : start "" /wait %~dp0siw64.exe /log=%~dp0%COMPUTERNAME%.html /log:xml=%~dp0%COMPUTERNAME%.xml /upload=https://xxx.yyy/upload.php /zip
(09-02-2021 10:12 AM)atopala Wrote:(09-02-2021 08:20 AM)snsv Wrote:(09-02-2021 08:01 AM)atopala Wrote:(09-02-2021 07:05 AM)snsv Wrote: Hello!
Is there any way to wait for siw completion, when using in a batch script ?
Thank you !
siw.exe is a launcher for siw64.exe, siw32.exe, or siw-arm64.exe
siw.exe doesn't wait for the child program to complete.
If you don't care about ARM64, you can use something like this:
@if "%ProgramFiles(x86)%" == "" (siw32 /log) else (
siw64 /log
)
Thank you!
That works for a simple command line like siw64 /log, but when using with a more complex one, the batch doesn't wait for execution.
For example with : start "" /wait %~dp0siw64.exe /log=%~dp0%COMPUTERNAME%.html /log:xml=%~dp0%COMPUTERNAME%.xml /upload=https://xxx.yyy/upload.php /zip
It attached batch file works on my Windows 10 PC.