Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to wait for completion ?
#1

Hello!

Is there any way to wait for siw completion, when using in a batch script ?

Thank you !
Reply
#2

(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
)
Reply
#3

(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
Reply
#4

(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.
[Image: upload.png]
.zip upload.zip Size: 267 bytes  Downloads: 0
Reply
#5

(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.
[Image: upload.png]

My mistake !!!

Wasn't running the good Batch file Confused Confused 

That works really good right now!

Thank you!
Reply




Users browsing this thread: 1 Guest(s)