locked
create an script to open and close a file RRS feed

  • Question

  • Hi,

    I will like to create an script to open and then close a file within 2 minutes . I understand I need to setup "task schedule" to run the script. just need help in write the script to open and wait 2 minutes then, close.

    so far I able to open the file by

    Invoke-ItemC:\Users\Deras\Documents\testExcel.xlsx

    but need help in the timer and then closing the file.

    thanks !

    • Moved by Bill_Stewart Tuesday, July 12, 2016 9:35 PM Unanswerable drive-by question
    Wednesday, June 8, 2016 6:32 AM

All replies