taskcheduler_runnow: Immediately run a specific task available in the Windows task...

Description Usage Arguments Value Examples

Description

Immediately run a specific task available in the Windows task scheduler.

Usage

1

Arguments

taskname

the name of the task to run. See the example.

Value

the system call to schtasks /Run

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR")
taskscheduler_create(taskname = "myfancyscript", rscript = myscript, 
 schedule = "ONCE", starttime = format(Sys.time() + 10*60, "%H:%M"))

taskcheduler_runnow("myfancyscript")
Sys.sleep(5)
taskcheduler_stop("myfancyscript")


taskscheduler_delete(taskname = "myfancyscript")

## End(Not run)

anuj0607/taskSchedulerR documentation built on May 19, 2019, 3:05 a.m.