I know I have already answered a similar question (Running Batch File in background when windows boots up), but this time I need to launch a batch:
- from another batch
- without any DOS windows displayed
- with all arguments passed to the invisible batch
The first batch is executed in a DOS windows. However, I do not want the second batch (launch by the first in a asynchronous way) to display also a DOS windows.
I have come up with a vbs script which does just that and I put the script as an answer for others to refer to, but if you have other ideas/solutions, feel free to contribute. I will choose an official answer amongst your propositions.
Thank you all for the answers. From what I understand, if I need to asynchronously call a script to run in a invisible mode:
- from a second script already in a DOS windows,
start /b
is enough - from Windows, without triggering a second window, my solution is still valid.