Passion : logiciel
juillet 27th, 2010

How to restart the same applications when closed for kiosk PC


import thread, subprocess, time,os

def process_waiter(name,value):
while True:
p = subprocess.Popen(name)
p.wait()
subprocess.Popen('C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe')
#thread.start_new_thread(process_waiter, ('C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe',""))
thread.start_new_thread(process_waiter, ('C:\Program Files\LSaDrv\LSDRVA.EXE',""))
thread.start_new_thread(process_waiter, ('C:/ProgramData/Mozilla Firefox/firefox.exe',""))

while True:
time.sleep(1)

0 Comments »

Pas encore de commentaire.

Flux RSS des commentaires de cet article. TrackBack URI

Laisser un commentaire

*
This work is licensed under GPL - 2009 | Powered by Wordpress using the theme aav1