-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproofs.py
More file actions
32 lines (26 loc) · 962 Bytes
/
Copy pathproofs.py
File metadata and controls
32 lines (26 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'''Permite ejecutar cualquier comando de consola'''
import os
'''==========================Abrir un programa=========================='''
#rec de ejemplo
rec = 'abrir steam'
program = rec.replace('abrir ', '')
print(program)
#dirección será igual al directorio donde esté la carpeta DirectAccess
direccion = "L:/Projects/VirtualAssistant/DirectAccess/"
os.system(direccion + program + '.lnk')
'''===========================Apagar PC==========================='''
#---------------------Basic Shutdown Comands-----------------------
#Apagar PC
#shutdown /s
#apaga en 20 seguntos
#shutdown /s /t 20
#Cancela apagado
#shutdown /a
#rec de ejemplo
print("La PC se apagará en 30 segundos")
os.system('shutdown /s /t 30')
print('cancelando apagado programado')
os.system('shutdown /a')
'''=====================Cambiar Fondo de Pantalla=================='''
direccion = "L:/Projects/VirtualAssistant/DirectAccess/"
os.system(direccion+'fondos.url')