Dim WshShell Set WshShell = CreateObject("WScript.Shell") ' Matar solo el proceso python que corre email_assistant.py WshShell.Run "wmic process where ""name='python.exe' and commandline like '%email_assistant%'"" call terminate", 0, True WScript.Sleep 2000 ' Arrancar de nuevo WshShell.Run "python ""D:\Proyectos Software\EmailManager\email_assistant.py""", 0, False Set WshShell = Nothing