HI there
I would like to open a specific URL at 5 different times of the day, everyday for the whole year using windows powershell. These times would change everyday by a minute or so and therefore i would have all the times for each day of the year specified in a Excel spreadsheet.
The URL should open in IE and should be open for about time minutes and then close.
I have the code to open the url but how would i get it to open on the exact time based on the time in my excel spreadsheet.
Heres the code to open the URL:
$IE=new-object -com internetexplorer.application
$IE.navigate2("http://www.vocfm.ndstream.net/wmplayer.htm")
$IE.visible=$true
In the spreadsheet i have 365 rows from 1 jan to 31 dec with columns date, time1, time2, time3, time4, time5.
IF i could use something like
If Get-Date = 1 jan
then go to times.xlsx where row = 1 jan and check if time1 = current time and then run the URL .ps1 mentioned above.
Thanks in advance for any help.
I would like to open a specific URL at 5 different times of the day, everyday for the whole year using windows powershell. These times would change everyday by a minute or so and therefore i would have all the times for each day of the year specified in a Excel spreadsheet.
The URL should open in IE and should be open for about time minutes and then close.
I have the code to open the url but how would i get it to open on the exact time based on the time in my excel spreadsheet.
Heres the code to open the URL:
$IE=new-object -com internetexplorer.application
$IE.navigate2("http://www.vocfm.ndstream.net/wmplayer.htm")
$IE.visible=$true
In the spreadsheet i have 365 rows from 1 jan to 31 dec with columns date, time1, time2, time3, time4, time5.
IF i could use something like
If Get-Date = 1 jan
then go to times.xlsx where row = 1 jan and check if time1 = current time and then run the URL .ps1 mentioned above.
Thanks in advance for any help.