With a DOS batch,
You can rename your downloaded file in SDATfile.exe for example.
And then in your batch file, copy the file if more recent with "xcopy /D".
Analyse return code of "Xcopy" command to execute
If file copied, then execute it.
Another way :
Fix a batch file with a Environment variable like : set file=sdat4578
And then always execute this batch file on client, you have then a %FILE% and you
could check if the %file% EXIST on a directory, if not, download it, and execute it.
Yves
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Durocher, Leo
Envoy� : lundi 5 avril 2004 14:21
� : [EMAIL PROTECTED]
Objet : Auto FTP script
I need to have a script that is scheduled to run once a day to get the latest Virus
definition. The file always has sdat4*.exe and I have a networked folder that keeps
this file.
What I am trying to do is look to see if the file name has increased its name (4347)
if so then download the new one. If it is the same then exit.
Also I will have to copy this file to two folders and rename the file in one folder.
I am currently doing this via a DOS Batch. It is very limited. Ideally I
would like to take the name of the file I download and add it to a Batch file
(replacing the last file name)
Any help would be greatly appreciated!
Leo
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs