How to open two html files with default browser

I have a script that generates two reports and many many html files, and I would like to open only two html files with the default browser.

My Powershell script ends as follows:

Invoke-Item C:\Reports\XUReport.htm Invoke-Item C:\Reports\index.htm 

My script opens only the first file. What would be the best way to do this?

+6
source share
1 answer

Add a short pause from one call and another:

 Invoke-Item C:\Reports\XUReport.htm start-sleep 1 Invoke-Item C:\Reports\index.htm 
+8
source

Source: https://habr.com/ru/post/953947/


All Articles