Open a URL 5 different times a day based on times from an EXCEL spreadsheet.

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. 

It looks like you already know how to use ComObjects in Powershell so start by making an Excel object.
$Excel = new-object -comobject excel.application
There are a lot of example scripts in the
TechNet Gallery to see how others have used the object.

Similar Messages

  • Copy link 0.1.7 addon is working with firefox 19.0, what can I do for open all url at a time with help of short key.

    copy link 0.1.7 addon is working with firefox 19.0, what can I do for open all url at a time with help of short key.

    Check out this Addons
    *https://addons.mozilla.org/en-US/firefox/addon/multi-links

  • I want to write a script or Automator workflow/app that emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have experience?

    I want to write a script or Automator workflow/app that automatically emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have similar experience and know that this would work?

    I have had a first stab at the script, below.  It uses a file to store the shortcuts and command [descriptions].  You should be able to see from the script annotations how to add a new one.  (I populated 1-4 with real data, but got lazy after that, so you have a few placeholders to work with first.
    As I have noted, once you are happy that you have all the data in the file, you can comment out part of the script for ongoing use.  (BTW, my reluctance to use Excel is that I don't currently have it installed and I don't want to offer wrong advice.  If you have Numbers, I do have that and could probably modify to work with a spreadsheet from there.  This might be especially useful if you have the data already sitting in Excel.)
    A few things came-up whilist I was writing the script:
    1.     Currently, all recipients will not only get the same tip at the same time, but they will see the names and email addresses of the others who receive them.  It is possible to modify this.
    2.     I have added a property gRandomCheck which keeps track of which shortcut has already been used (since the last time the script was compiled.  This will prevent the same tip being sent more than once.    When all tips have been sent once, the script will alert you and not send anything until reset.  It does not check on a per-addressee basis (which would be a refinement).  (If you add a new addressee at this stage, the whole process will start again, and you may not really want this to be the behaviour.)
    3.     The way that I have built the list, commandList, is deliberately cumbersome - it's for the sake of clarity.  If you prefer, you can construct the whole list as {{shortcut:"X", command:"X"}, {shortcut:"Y", command:"Y"}}
    Have a look - I am sure you will have questions!
    SCRIPT STARTS HERE  Paste the following lines (thru the end) into a new AppleScript Editor document and press RUN
    --The property gRandomCheck persists between runs and is used to stop sending the same hint twice.
    property gRandomCheck : {}
    --I am defining a file on the desktop.  It doesn't have to be in this location
    set theFolder to path to desktop
    set commandFile to (theFolder as text) & "CommandFile.csv"
    --(* Unless you need to change the file contents you do not need to write to it each time.  Remove the "--" on this line and before the asterisk about 18 lines below
    --Follow this format and enter as many records as you like on a new line - each with a unique name
    set record1 to {shortcut:"Z", command:"Undo"}
    set record2 to {shortcut:"R", command:"Record"}
    set record3 to {shortcut:"⇧R", command:"Record Toggle"}
    set record4 to {shortcut:"⌘.", command:"Discard Recording & Return to Last Play Position"}
    set record5 to {shortcut:"X", command:"x"}
    set record6 to {shortcut:"X", command:"x"}
    set record7 to {shortcut:"X", command:"x"}
    set record8 to {shortcut:"X", command:"x"}
    set record9 to {shortcut:"X", command:"x"}
    set record10 to {shortcut:"X", command:"x"}
    set record11 to {shortcut:"X", command:"x"}
    set record12 to {shortcut:"X", command:"x"}
    set record13 to {shortcut:"X", command:"x"}
    --Make sure you add the record name before randomCheck:
    set commandList to {record1, record2, record3, record4, record5, record6, record7, record8, record9, record10, record11, record12, record13}
    --This part writes the above records to the file each time.
    set fileRef to open for access commandFile with write permission
    set eof of fileRef to 0
    write commandList to fileRef starting at eof as list
    close access fileRef
    --remove "--" here to stop writing (see above)*)
    --This reads from the file
    set fileRef to open for access commandFile with write permission
    set commandList to read fileRef as list
    close access fileRef
    --Here's where the random record is chosen
    set selected to 0
    if (count of gRandomCheck) is not (count of commandList) then
              repeat
                        set selected to (random number from 1 to (count of commandList))
                        if selected is not in gRandomCheck then
                                  set gRandomCheck to gRandomCheck & selected
                                  exit repeat
                        end if
              end repeat
    else
              display dialog "You have sent all shortcuts to all recipients once.  Recompile to reset"
              return
    end if
    --This is setting-up the format of the mail contents
    set messageText to ("Shortcut: " & shortcut of record selected of commandList & return & "Command: " & command of record selected of commandList)
    tell application "Mail"
      --When you're ready to use, you probably will not want Mail popping to the front, so add "--" before activate
      activate
      --You can change the subject of the message here.  You can also set visible:true to visible:false when you are happy all is working OK
              set theMessage to (make new outgoing message with properties {visible:true, subject:"Today's Logic Pro Shortcut", content:messageText})
              tell theMessage
      --You can add new recipients here.  Just add a new line.  Modify the names and addresses here to real ones
                        make new to recipient with properties {name:"Fred Smith", address:"[email protected]"}
                        make new to recipient with properties {name:"John Smith", address:"[email protected]"}
      --When you are ready to start sending, remove the dashes before "send" below
      --send
              end tell
    end tell

  • Getting the Headings and Time Column on Excel Spreadsheet

    Hi,
    I am reading a 2-D array of data on an excel spreadsheet. Currently I only have the readings on the spreadsheet. Ideally I would like to have a time column in the spreadsheet as well and also the ability to add column name to each column of data read in the spreadsheet. Is there any way through which I can do this? I have added an image of the wiring I am doing for my interface below.
    Thanks,
    Rohit

    Attached is how I save data and time stamp to a csv file.
         The header information is on the far left, before the loop.
    It's probably considered an  "Old School" way of doing things.
    Let me know if this helps.
    Bill
    Attachments:
    Temperature logger LV7 SCC 6-26-07.vi ‏511 KB

  • Open MM Period with different time zone via job

    Hi All,
    I'm getting a bit confused with posting date and times and time zones.
    I read note 968050 and it states that all the posting date are stored in the  MKPF with the server date for consistencies reason.
    My problem is that my company has two company code one in Europe (sever time as well) and one in US. I would like to schedule a job to open the MM period (MMPV) every first of the month at 12:00 US time. (let say EU time)
    two questions:
    - Should i schedule it at 6 Server time?
    - will I be able to make postings in the last day of the month in the evening when in Europe (and on the server) it's already a new month? In other words can i make an entry in MKPF with posting date new month but still in the old period???

    Timing:  You need to be sure that the period has been moved on Day 1, before an office starts work. 
    We have companies in Australia, Europe and United States.  We run three separate jobs for each of these areas (ver5.0).
    If you were to move the period on Oct 30, the result on the 31st would be:
    1- Material could no longer be moved in September (usually not a problem because FI stopped postings to Sept earlier in the period)
    2 - Material could be moved with posting dates of November, (if FI has opened the FI Accounting periods.)
    Material movements made October 31st are just like movementes made on Oct 30.
    Althea

  • Can only delete one URL at a time from History, why not more?

    In prior versions you could select a rabge and delete them all at one time.

    When you open the History sidebar (Ctrl-H), you can only right-click an entry, Delete This Page, but if you open the History Library (Ctrl-Shift-H), multiple entries can be selected as above and then press the Delete key.

  • Date and time formatting in excel spreadsheet

    Hi:
    When I try to pass the data from jsp to excel , the excel sheet can't publish the date and time in the pattern that I wanted. I used SimpleDateFormat to format the date and time when I passed the data from jsp.
    SimpleDateFormat formatter=new SimpleDateFormat ("MM/dd/yyyy HH:mm:ss a");
    Could anyone tell me a solution.
    Thanks.

    Can you describe your problem a bit more. How are you passing the data, what is the error being seen in excel

  • Date and time from array of string

    I have managed to read information from an excel spreadsheet I am using and display different parts of it in indicators on my front panel. But the data being displayed for the cells that contain the date and time are showing up incorrectly.
    The date of 15/08/2014 shows in the indicator box as 41866 and the time of 13:55:00 shows as 0.579861111111111
    Is this something I need to change in the excel file or do I need to alter the data in the array before displaying it in the indicator.
    Sorry if this has been explained in the past. I just cant seem to see a previous solution.
    Thanks in advance

    Hi n,
    please search for your problem in the forum. This has been discussed a lot of times before! (keywords: Excel LabVIEW timestamps)
    Excel stores timestamps as number of days (your 41866) and part of days (0.5798d = 13H55M). You need to convert those numbers using some (more or less) simple math to LabVIEW timestamps!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HTTP response time - From any SAP table.

    Hi,
    Can we get http response time other than from SMICM u2192 Http log?
    Reason for me to ask is we cannot see complete URL in smicm log with response time.
    date - "POST /sap/bc/webdynpro/sap/cprojects/?sap-contextid=......................................... HTTP/1.1" 200 325894 9555 h[-]
    As per sap help link complete URL after contextID is hidden for security reason.
    http://help.sap.com/saphelp_crm70/helpdata/EN/48/442541e0804bb8e10000000a42189b/frameset.htm
    u201CFor security reasons the following information is hidden (replaced with points) from the logging procedureu201D
    Question: can we access complete URL from any table level with http response time, any input is appreciated.
    Thanks,
    Venkat.

    Michael,
    First of all, thanks for the reply.
    In our environment we have cprojects implemented and have lot of webdynpro request to ECC system.
    From http log (SMICM) I can see many webdynpro requests with response time above 30 minutes; I want to automate this monitoring by writing a CCMS data supplier. We already have SAP document to write data supplier.
    Scenario: For example if they are doing a task in cprojects.
    We will be having a GET webdynpro request and then POST. By looking at GET we can know the task user is trying to do. But it is POST request which will be taking most of the response time and POST URL is show u2026(point) after context ID and as per SAP help this is done for security reason.
    HTTP log from SMICMu2026
    [DATE] - "GET /sap/bc/webdynpro/sap/cprojects?sap-client=clnt&STARTVIEW=Tasks&OBJECT_TYPE=TTO&GUID=GUIDNUMBER
    [DATE] - "GET /sap/bc/webdynpro/sap/cprojects/~ucfLOADING?sap-contextid=....................
    [DATE] - "POST /sap/bc/webdynpro/sap/cprojects/?sap-contextid=........................[response time]
    I think SAP is displaying as point in http log file, but it should definitely have complete URL is any of the table.
    So I am looking If we can find the complete POST URL with response time from table then we can write an ABAP program to send the information to CCMS.
    Thanks,
    Venkat.

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I recently purchased FaceTime from the Application Store. After approx. ±10 meg, the application resets and starts downloading again. I have tried to download it at different times of the day but with the same results. I have been in contact with Apple su

    I recently purchased FaceTime from the Application Store. After approx. ±10 meg, the application resets and starts downloading again. I have tried to download it at different times of the day but with the same results. I have been in contact with Apple support and have tried different options with the same result. I cannot download a new Version because in my Purchased List the applicaiton (FaceTime) is still there, and because I have halted it it tells me to resume. I can’t, because the same thing is going to happen. I have tried all the various troubleshooting tips supplied by my ISP and also Apple Support with no luck. I am currently working on a IMac OS 10.6.7. Has anybody got any ideas? Any suggestion would help. Thanks

    Amol Soni wrote:
    As I said, I tried everything what the manual says, but hard luck. I have taken an appointment for today, lets see what happens.
    Also there is no activity on unit when I use the remote. The unit is stuck on the first page itself where we have to choose the language. The unit seems to be fine to me but the real problem is remote does'nt have activity. The IR is not responding while pressing any of the button.
    Good luck with your appointment.
    Not much consolation but even new products can have issues and might need a trip to a store to return/replace.
    The reason i asked about the LED on the AppleTV is that occasionally it thinks it's paired with a specific remote and ignores others - the unpair keypress I described is quick and free.
    AC

  • I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

    I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

  • Itunes gives me an error "can not open url at this time"

    Every time I open Itunes on my computer it asks me to update Itunes and  click on the update... it then gives me an error message stating it can not open URL at this time....

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of. CoreMedia.dll is part of Apple Application Support.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • When i open my itunes of recent edition , i am getting error as  "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    When i open my itunes of recent edition 12.0, i am getting error as "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    Try iTunes for Windows: How to turn off Compatibility Mode.
    tt2

  • Open URL at specified time

    I'm trying to get Safari to open a URL each day at 8:59 AM. Can this be done in Automator -- as I've never used AppleScript.
    If not, can someone point me as to how to set a script to do this?
    Thanks.
    All My Best,
    Jeffrey

    It can be done via Automator, but scheduling tasks is far easier done via other means.
    Therefore you should split your request into two parts - one part that opens the URL and a second part that executes the script on a schedule.
    You could either write an Automator action or just a simple AppleScript:
    open location "http://www.apple.com/"
    Save that script and part 1 is done.
    For the second part, you could use something as simple as iCal scheduling - iCal has the ability to run an AppleScript on any calendar event. Alternatively you could add it to cron, the system-wide task scheduler. If you're familiar with the shell you should be OK, otherwise get a copy of CronniX which makes it easy to configure cron actions.

Maybe you are looking for

  • IMac Rebooting - Kernal Panic Problem

    Hi, I am hoping somebody can shed some light on a situation that has been occuring with my iMac. I am running OS X 10.8.2 4GB RAM, 2.93 GHz Intel Core 2 Duo. If there are any other details I can provide I will be happy to do so. I get an involuntary

  • MS Word to Portal Page

    Hi. How do I open a document MS Word, in the form of pages, using content presenter? Now the document appears as a link. MS Word document is in the content server. IDB is set up. Thanks

  • LOV - get value for hidden id

    Hi, I thought this would have been asked a few times earlier, but I cannot find it. So I hope some of you will know. Once I did applications in Oracle Forms, and now I wanted to do something I thought would be simple in apex. However, I don't underst

  • How to have web page open in same browser window after redirect in Flash video placed in Dreamweaver?

    Hello, Would be grateful if anyone can help me. website: www.Paris-Pet.com Currently, a flash video plays on the index page. The following action is placed in the last frame of the video in Flash: navigateToURL(new URLRequest("http://www.paris-pet.co

  • Unity UM 'unidentified caller' problem between Unity servers

    Team, We are simulating a clients UM setup using Unity 4.0(5) befor we migrate everything to Unity 7.0(2) and CUCM 7.1(3). We setup 2 Unity servers in different locations in one AD domain. Each location also has its own Exchange 2003 servers which th