https://github.com/daack/schtasks
https://github.com/daack/schtasks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/daack/schtasks
- Owner: daack
- License: mit
- Created: 2018-03-08T13:15:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T18:12:57.000Z (over 7 years ago)
- Last Synced: 2026-05-14T09:15:39.627Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# schtasks
Windows scheduled tasks
* [Install](#install)
* [How to use it](#example)
To install schtasks, simply use npm:
```
npm install schtasks --save
```
```javascript
const sc = require('schtasks')
await sc.create('TestTask', {
taskrun: 'C:\\TaskPath\\task.exe',
schedule: 'WEEKLY',
days: ['MON', 'TUE'],
interval: 15,
starttime: '00:00',
duration: '24:00'
})
await sc.get('TestTask')
await sc.run('TestTask')
await sc.stop('TestTask')
await sc.update('TestTask', {
disable: null
})
await sc.destroy('TestTask')
/*
Available options
schedule
modifier
days
months
idletime
taskname
taskrun
starttime
interval
endtime
duration
startdate
enddate
level
enable
disable
*/
```