You have errors in your script. For example line Dim depot ,String, "d:\\247\\" repeats twice, which may cause an error in run-time. Check 24x7 job log for additional information. Also, before your run the job try manually deleting your local file d:\247\XXXXi32.exe. : My but is download automatically the update of my anti-virus : When I download the file directly on the site ftp and when I download the : same file with webgetfile I have not the same file size ,the second file : is grater than the first and I can not execute it.For download I use a : proxy .Can you test my script amd say me where is the probleme . : Thank you for your help. : // Parametrage de la connexion du proxy : WebConfig "PROXY","xxx.xxx.xxx.xxx,80" : Dim Today, Date : Dim yesterday, Date : Dim file_name, String : Dim low_space, Boolean : Dim file_size, Number : Dim depot ,String, "d:\\247\\" : // Date d'aujourd'hui : Today( Today ) : // Calcul de la date d'hier : DateAdd( Today, 0, yesterday ) : RECHERCHE: Dim file_name, String ," " : Dim depot ,String, "d:\\247\\" : Dim chemin ,string " : ftp://ftp.symantec.com/public/english_us_canada/antivirus_definition/norton_antivirus/" : ; : // Convertion de la date : Format( yesterday, "mmdd", file_name ) : // Ajout de l'extension : Concat( file_name, "i32.exe", file_name ) : // Ajput de l'origien et l'arrivée du fichier : Concat( chemin, file_name,chemin ) : Concat( depot ,file_name, depot) : // Recuperation du fichier : WebGetFile( chemin, depot ) : // Calcul de la date d'hier : DateAdd( yesterday, -1, yesterday ) : // Taille du fichier recu : FileSize( depot, file_size ) : IsLess( file_size, 1000000, low_space ) : If( low_space, recherche, end ) : END:
|