Opening a document from a windows service RRS feed

  • Question

  • Hello everyone,

    I wanted to know if is possible to open a document (Office, PDF, MSG, ...) from a windows service (client side). I'll explain:
    I am creating a service that checks/monitors a particular directory (client side) and when document is copied into it (Word / Excel / PowerPoint, Acrobat, email, ...) the service automatically opens it.
    I created a "Windows Service - .NET Framework" project and when I execute it (debug) as a "console application" everything works: I copy a document to the folder and it is "automatically" opened with the associated application (Office, Acrobat , ..) vice versa, using/installing the application as a service the document is not displayed even if among the processes I see the Winword.exe / Excel.exe / ... process that has been correctly launched.
    Further information:
    - to monitor the folder I use: "System.Timers.Timer"
    - to open the document I use: "System.Diagnostics.Process.Start"



    Wednesday, January 22, 2020 10:54 AM


All replies