Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create a task in windows task scheduler using QT?

How to create a task in windows task scheduler using QT?

Scheduled Pinned Locked Moved Solved General and Desktop
desktopwindowsc++
3 Posts 2 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tusharh
    wrote on last edited by
    #1

    Is there any QT api which helps you to create a task in windows task scheduler. Set all conditions & triggers to the task as can be done in the windows task scheduler.

    Thanks in advance.

    mrjjM 1 Reply Last reply
    0
    • T Tusharh

      Is there any QT api which helps you to create a task in windows task scheduler. Set all conditions & triggers to the task as can be done in the windows task scheduler.

      Thanks in advance.

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      A fast way would be to use QProcess and
      Schtasks.exe
      https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx

      Its a windows (platform) feature so Qt do not provide any classes for it.

      T 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        A fast way would be to use QProcess and
        Schtasks.exe
        https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx

        Its a windows (platform) feature so Qt do not provide any classes for it.

        T Offline
        T Offline
        Tusharh
        wrote on last edited by
        #3

        @mrjj Thanks, used Schtasks.exe to create task & to run it as admin used shellexecute with verb "runas".

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved