Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have been looking through the forums and have found some scripts, but they are not working for me.
Symantec has a folder on their FTP site that has static-name files for the lastest updates. I tried modifying a script (I have NEVER played around with scripts & have only done basic edits in autoexec.bat files and such) but with no luck.
This is what I came up with:
@echo off
> %0.ftp echo o ftp.symantec.com
>> %0.ftp echo anonymous
>> %0.ftp echo password
>> %0.ftp echo bin
>> %0.ftp echo hash
>> %0.ftp echo cd /AVDEFS/norton_antivirus/static
>> %0.ftp echo prompt
>> %0.ftp echo mget symcdefsi32.exe
>> %0.ftp echo byeftp -s:%0.ftp
::Done
This file executes and connects, but after running the "...echo mget symcdefsi32.exe" line, I get a message "Connection closed by remote host" and the script ends and I dont get my file :(
Will anyone be able to help me with either a script that I can get windows scheduler to run every couple of days or maybe there's a program out there that can do this for me (a recursive download of the same file)?
The URL of the file I want to download is:
ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exeI have tried downloading this file manualy with DAP (Download Accelerator Plus) and with IExplorer and both ways work. I just can not get it to download with a script.
Once it's downloaded, I want to put it into a shared file on the network and then put a script (if possible) on the other machines to download that file from the network-share and run it to update the individual virus defs. Also thought of doing this with Spy-bot and Ad-aware...
Any help will really be appreciated!

I have no idea what's causing the problem but you may get a clue if you use a utility like Wireshark which logs all the data going in both directions between you and the FTP server.

Why are you using multiple get when you're only pulling one file? Replace mget with get and try again.

I don't see any exe there until I drill down to AVDEFS/norton_antivirus
Then I see over a dozen, none conforming to the name you gave. A sample:
20081112-003-i32.exe
20081112-003-i64.exe
20081112-003-v5i32.exe
20081112-003-v5i64.exe
20081112-003-x86.exeAll are 30MB+ LOL
========================================
We went through a similar drill with McAffee a few months ago. Best I could figure is that the ftp site 'looks' different depending on the incoming xliwnt/browser. MORE LOL
Probably what you'll want is the latest file of type blabla*.exe
=====================================
If at first you don't succeed, you're about average.M2

Ok, I tried using "get" instead of "mget" and same thing happens.
If you open "ftp.symantec.com", navigate to "AVDEFS", navigate to "norton_antivirus", navigate to "static" an you will find the file I'm talking about.
Symantec has linked that static name to the latest def file. So this way, I dont have to change the file name in the script every couple of days - otherwise, what would be the point?if you open the vpcur.lst file with notepad in the same dir (static) you will see what file the static named file is linked to.
I also tried it with the normal file name, like 20081114-038-v5i64.exe and it does the same thing - just gives a message sayin connection closed by remote host...
I tried messing around with the xdbdown.bat file provided by symantec for exactly this purpose, but its way to complicated for me to figure out... and in its original form it doesnt work becuase (from what i gather) it's looking for a file called chk.lst to compare the file names with so it knows which is the latest to download. I think Symantec changed the format of their FTP site since that bat file was written.
Is there a program that i might use for this purpose?

@echo off
> #.ftp echo o ftp.symantec.com
>> #.ftp echo anonymous
>> #.ftp echo password
>> #.ftp echo bin
>> #.ftp echo cd /AVDEFS/norton_antivirus/static
>> #.ftp echo get symcdefsi32.exe
>> #.ftp echo byeftp -s:#.ftp
del #.ftp
=====================================
If at first you don't succeed, you're about average.M2

If I had to guess at the issue, I'd say it's a firewall/router issue. To solve it, we'd enable the client's "passive mode." However FTP.exe doesn't have that option. (This can be verified with IE; disable "Passive FTP" and try downloading a file.) Try configuring the router to forward port 20 to your PC.

Ethancader,
I just cut & pasted your script to a batch file and it works fine on my machine and connection.
You may want to use GNU's wget.exe which is a command line ftp / http websuck utility. It has provision for passive mode ftp get.
If you have the liberty to use wget, just one command "wget ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exe" will get you the file.--
Holla.

Ok, the problem might be the router... There is a linux box on the network which is the internet gateway. It has a firewall which is probably my problem. I downloaded wget for windows, but I havent had a look at how to make it work just yet.
I've just tried the script file on my dial-up connection at home and it works.
Thanks for your input guys!
By the way, If i wanted the script to put the downloaded file into a certain directory, how would i go about it?
I want it to go into a shared folder on the network which i will will map on every computer as a drive and hopefully make a script to execute the update file through windows task scheduler.

pushd n:\mystuff
=====================================
If at first you don't succeed, you're about average.M2

Ok i opened cmd and ran my batch file with the wget cmd, this was the output:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.C:\Documents and Settings\Administrator>cd\
C:\>sav
C:\>wget ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exe
--13:58:51-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
=> `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:58:58-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 2) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:04-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 3) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:10-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 4) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:19-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 5) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:27-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 6) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:36-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 7) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:43-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 8) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--13:59:48-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 9) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ...
^CTerminate batch job (Y/N)? yC:\>
Is this a problem of porting through the router?

" ==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done."
I dunno routers, but from the line above I wonder if you have a mish-mash of a ftp script and wget.
I get the file with just this:
wget ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exe
=====================================
If at first you don't succeed, you're about average.M2

I typed in exactly what you gave me and got the same thing!
C:\>wget ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exe
--15:37:26-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
=> `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--15:37:33-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 2) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.--15:37:41-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
(try: 3) => `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ...
^C
C:\>so now what!!!!????

Ethancader,
By default wget gets the file in non-passive mode.
This would work in most situations.
To get the file in passive mode, you have to instruct wget to do so.Try
wget --passive-ftp ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exeYou can also use -O option (note the capital) to specify the output file/directory location.
--
Holla.

My mistake.
Try what Holla posted.
=====================================
If at first you don't succeed, you're about average.M2

AH!!!!!!! cool man! thanks....
This is what i'm getting now:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.C:\Documents and Settings\Administrator>cd\
C:\>wget --passive-ftp ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/sym
cdefsi32.exe
--16:14:23-- ftp://ftp.symantec.com:21/AVDEFS/norton_antivirus/static/symcdefsi
32.exe
=> `symcdefsi32.exe'
Connecting to ftp.symantec.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD AVDEFS/norton_antivirus/static ... done.
==> PASV ... done. ==> RETR symcdefsi32.exe ... done.
Length: 36,196,480 (unauthoritative)0K -> .......... .......... .......... .......... .......... [ 0%]
50K -> .......... .......... .......... .......... .......... [ 0%]
100K -> .......... .......... .......... .......... .......... [ 0%]
150K -> .......... .......... .......... .......... .......... [ 0%]
200K -> .......... .......... .......... .......... .......... [ 0%]
250K -> .......... .......... .......... .......... .......... [ 0%]
300K -> .......... .......... .......... .......... .......... [ 0%]
350K -> .......... .......... .......... .......... .......... [ 1%]
400K -> .......... .......... .......... .......... .......... [ 1%]
450K -> .......... .......... .......... .......... .......... [ 1%]
500K -> .......... .......... .......... .......... .......... [ 1%]
550K -> .......... .......... .......... .......... .......... [ 1%]
600K -> .......... .......... .......... .......... .......... [ 1%]
650K -> .......... .......... .......... .......... .......... [ 1%]
700K -> .......... .......... .......... .......... .......... [ 2%]
750K -> .......... .......... .......... .......... .......... [ 2%]
800K -> .......... .......... .......... .......... .......... [ 2%]
850K -> .......... .......... .......... .......... .......... [ 2%]
900K -> .......... .......... .......... ......
So the -O option would be where in my batch file?

Ethan...
You said you wanted the script to put the downloaded file to a certain directory.You can get that done by using the -O option of wget. Type "wget -h" to know more about wget options.
The following gets the antivirusfile to c:\holla\mine\delete-later.tmp
10:33:23 c:\holla>wget --passive-ftp -O c:\holla\mine\delete-later.tmp ftp://ftp.symantec.com/AVDEFS
/norton_antivirus/static/symcdefsi32.exe
--10:57:43-- ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/symcdefsi32.exe
=> `c:/holla/mine/delete-later.tmp'
Resolving ftp.symantec.com... 205.177.95.131, 205.177.95.161, 64.86.106.98, ...
[....]--
Holla.

Cool, Thanks holla....
Will this command also overwrite the file in the destination directory or will I have to do this manually?
I would like the file ot overwrite the old defs file so users wont be confused as to which one to execute.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |