Complete a task - Exit Compiled App
Posted: Thu Jul 11, 2019 12:30 pm
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.165
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0
I have a little snippet that checks to see if a server is online - if so launches iexplore and the site.
However, once the site is successfully launched (it runs through four sites)
I would like it to close the Powershell Studio App automatically.
Thoughts?
Thanks!
~P.
Build: v5.6.165
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0
I have a little snippet that checks to see if a server is online - if so launches iexplore and the site.
However, once the site is successfully launched (it runs through four sites)
I would like it to close the Powershell Studio App automatically.
Thoughts?
Thanks!
~P.
- if(Test-Connection -Quiet -ComputerName "dcx-p-a-xxxdr01" -Count 1){
- $url = "http://dcx-p-a-xxxdr01/Director"
- $ie = New-Object -com internetexplorer.application
- $ie.visible = $true
- $ie.navigate($url)
- break
- }
- if(Test-Connection -Quiet -ComputerName "dcx-p-a-xxxdr02" -Count 1){
- $url = "http://dcx-p-a-ctxdrxx/Director"
- $ie = New-Object -com internetexplorer.application
- $ie.visible = $true
- $ie.navigate($url)
- break
- }