Skip to content

daack/schtasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

schtasks

Windows scheduled tasks

Install

To install schtasks, simply use npm:

npm install schtasks --save

How to use it

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
*/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published