Obviously if i comment the DeleteFile method i see the file get zip. Do i
need to put some sort of Sleep/Wait variable in my script?
B
Maybe wait for the file :
set oShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
while not FSO.FileExists("test.zip")
WScript.Sleep 1000 '
Wend
msgbox "done"
' generic .exec sample :
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("calc")' programma principale
' aka tua connessione
'Quando il programma principale termina vengono
' terninati anche i secondari
Set oExec1 = WshShell.Exec("notepad")' programma secondario
Set oExec3 = WshShell.Exec("Clipbrd")' programma secondario
'Set oExec4 >> ecc
WScript.Sleep 1500
WshShell.AppActivate("calculator")
msgbox"Try to close calc"
Do While oExec.Status = 0
WScript.Sleep 10
Loop
''WScript.Echo "status" &" >>>"& oExec.Status &" " &"Closed"
oExec1.Terminate()
'oExec2.Terminate()
oExec3.Terminate()
--
Fosco