first commit
This commit is contained in:
17
setup.py
Normal file
17
setup.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from setuphelpers import *
|
||||
import subprocess
|
||||
|
||||
hour_reboot = '12:00'
|
||||
|
||||
|
||||
def install():
|
||||
|
||||
print('Création de la tâche de WAPTExit chaque jour à 12h00')
|
||||
run(f'schtasks /create /tn "Launch WAPT Exit" /tr "waptexit" /sc daily /st {hour_reboot}')
|
||||
|
||||
def uninstall():
|
||||
|
||||
print('Suppression de la tâche de WAPTExit')
|
||||
if task_exists("Launch WAPT Exit") is True:
|
||||
run('schtasks /delete /tn "Launch WAPT Exit" /f')
|
||||
Reference in New Issue
Block a user