SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
download

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
download
Author Message
Laurent



Joined: 31 Jul 2001
Posts: 1

Post download Reply with quote

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:

Tue Jul 31, 2001 2:28 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: download Reply with quote

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:

Tue Jul 31, 2001 8:34 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.