**DONOTDELETE**
(Lurker)
2001-04-26 12:50 AM
Removing Norton Anti-Virus .vdb Files

Does anyone have code to delete OLD .VDB Norton virus patterns from users hard drives? These files take up a lot of space on user hard drives and I need code to delete all files except the latest pattern.


MCA
(KiX Supporter)
2001-04-26 07:50 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

Which version of Norton Antivirus you are using. We can't find this kind of files in our directory.
Please send a copy of a directory list from the directory which contains those files.
Greetings.

**DONOTDELETE**
(Lurker)
2001-04-27 02:44 AM
Re: Removing Norton Anti-Virus .vdb Files

The files are located under the following path:

d:\program files\nav\

There are four files: VD0CEE21.VDB dtd 3/23
VD0CF617.VDB dtd 3/27
VD0D0603.VDB dtd 4/3
VD0D1826.VDB dtd 4/12

Each of the files are over 3,000 MB which hogs space on the users hard drive. I want to be able to delete the first three files and keep the most recent file on all users hard drives.


kholm
(Korg Regular)
2001-04-27 10:56 PM
Re: Removing Norton Anti-Virus .vdb Files

Stan

Are you sure that these files has something to do with Norton antivirus.

My virus patterns for Norton antivirus has the size of about 5 MB, ver 5.0 to 7.5

You have four files at 3000MB, that is 12 GigaBytes????

What version of Norton antivirus are you using?

Even a server version should be ashamed to use the kind of space your desktops are using

Have you made some sort of export of the installation routines to all desktops?

MCA
(KiX Supporter)
2001-04-28 03:00 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

We agree with KHOLM. For all versions of norton antivirus we doesn't recognize this type. A new element of norton internet security creates update files which sizes of 25 MBytes. Maybe the registry can give you and us more information about the file extension VDB (see HKCR). Check also for VDB in other parts of your registry.

We suppose that this file is create by a backup process. We saw such things by using backup exec. Try to related the creation of those files to any job which me run automatically.

The location of d:\programs files\nav isn't
the default location NAV will be using.
Greetings.

[This message has been edited by MCA (edited 29 April 2001).]

MCA
(KiX Supporter)
2001-04-29 12:49 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

We discovere VDB is also used by Visual dBaSE programs.
Greetings.

**DONOTDELETE**
(Lurker)
2001-04-29 10:51 PM
Re: Removing Norton Anti-Virus .vdb Files

StanDaMan is right. NAV Corporate uses these files. He typo'ed the size as they are ~3MB in size.
see url below for more info.
http://service1.symantec.com/SUPPORT/ent-security.nsf/3d2a1f71c5a003348525680f006426be/187f8e81e1af75fb88256a220026a9ba?OpenDocument&Highlight=0,vdb


MCA
(KiX Supporter)
2001-04-29 11:13 PM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

Indeed NAV use also VDB as extension. It looks like the usage of scr, which is normally used by screen savers and is another extension for Kixtart scripts.
The amount of 3 Mbytes is more realistic.
We have an idea how to cleanup such a directory. Soon we will send you our suggestion.
Greetings.

MCA
(KiX Supporter)
2001-04-30 02:46 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

We create following script:

code:

$path="d:\Program Files\nav\*.vdb" ; <-- change be changed to other filenames
$temp_file="%temp%\kixtart.tmp"
;
del $temp_file
shell "%comspec% /c dir "+$path+" /o:d /b /s >"+$temp_file
shell "%comspec% /c echo ~~~completed~~~ >>"+$temp_file
IF (Exist($temp_file) = 1)
IF (Open(1,$temp_file) = 0)
$file=ReadLine(1)
$file_prev=$file
IF (INSTR($file,"~~~completed~~~") <> 0)
$completed="yes"
ELSE
$completed="no"
ENDIF
WHILE ($completed <> "yes")
$file=ReadLine(1)
IF (INSTR($file,"~~~completed~~~") = 0)
IF (GetFileTime($file) > GetFileTime($file_prev))
? " delete "+$file_prev+" ("+GetFileTime($file_prev)+" "+GetFileSize($file_prev)+" bytes)"
IF (SetFileAttr($file_prev, 32) <> 0)
? "Error "+$error+": "+@serror
ENDIF
del $file_prev
$file_prev=$file
ELSE
? " delete "+$file+" ("+GetFileTime($file)+" "+GetFileSize($file)+" bytes)"
IF (SetFileAttr($file, 32) <> 0)
? "Error "+$error+": "+@serror
ENDIF
del $file
ENDIF
ELSE
$completed="yes"
ENDIF
LOOP
?
IF (INSTR($file_prev,"~~~completed~~~") = 0)
? " most recent file = "+$file_prev+" ("+GetFileTime($file_prev)+" "+GetFileSize($file_prev)+" bytes)"
ELSE
? " no file '"+$path+"'"
ENDIF
ENDIF
ENDIF
del $temp_file

With $path="T:\*.html" we see the following information:

code:

delete t:\002200.html (2001/04/29 22:06:26 20022 bytes)
delete t:\002204.html (2001/04/29 22:13:25 20561 bytes)
delete t:\001598.html (2001/04/29 22:14:15 17062 bytes)

most recent file = t:\001590.html (2001/04/29 22:14:22 11782 bytes)



The temporary file looks like:
code:

t:\002200.html
t:\002204.html
t:\001598.html
t:\001590.html
~~~completed~~~

Second run will be

code:

most recent file = t:\001590.html (2001/04/29 22:14:22 11782 bytes)

By an empty directorie for specified file

code:

no file '*.html'

Greetings.


**DONOTDELETE**
(Lurker)
2001-04-30 02:58 PM
Re: Removing Norton Anti-Virus .vdb Files

MCA,

Thanks for the reply. I get the following error message when I attempt to run this script. Any suggestions?

Error - Abnormal program termination, exit code: 1(0x01)

MCA
(KiX Supporter)
2001-05-01 02:55 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

We suppose that during the copy action something is going wrong.
Code without debug info:

code:

$path="d:\Program Files\nav\*.vdb" ; <-- change be changed to other filenames
$temp_file="%temp%\kixtart.tmp"
;
del $temp_file
shell "%comspec% /c dir "+CHR(34)+$path+CHR(34)+" /o:d /b /s >"+$temp_file
shell "%comspec% /c echo ~~~completed~~~ >>"+$temp_file
IF (Exist($temp_file) = 1)
IF (Open(1,$temp_file) = 0)
$file=ReadLine(1)
$file_prev=$file
IF (INSTR($file,"~~~completed~~~") <> 0)
$completed="yes"
ELSE
$completed="no"
ENDIF
WHILE ($completed <> "yes")
$file=ReadLine(1)
IF (INSTR($file,"~~~completed~~~") = 0)
IF (GetFileTime($file) > GetFileTime($file_prev))
? " delete "+$file_prev+" ("+GetFileTime($file_prev)+" "+GetFileSize($file_prev)+" bytes)"
IF (SetFileAttr($file_prev, 32) <> 0)
? "Error "+$error+": "+@serror
ENDIF
del $file_prev
$file_prev=$file
ELSE
? " delete "+$file+" ("+GetFileTime($file)+" "+GetFileSize($file)+" bytes)"
IF (SetFileAttr($file, 32) <> 0)
? "Error "+$error+": "+@serror
ENDIF
del $file
ENDIF
ELSE
$completed="yes"
ENDIF
LOOP
?
IF (INSTR($file_prev,"~~~completed~~~") = 0)
? " most recent file = "+$file_prev+" ("+GetFileTime($file_prev)+" "+GetFileSize($file_prev)+" bytes)"
ELSE
? " no file '"+$path+"'"
ENDIF
ENDIF
ENDIF
del $temp_file

The line:

code:

shell "%comspec% /c dir "+CHR(34)+$path+CHR(34)+" /o:d /b /s >"+$temp_file


is extended with the CHR(34) characters for handling long filenames.

To trace a possible problem we have include a debug version of above
code.

code:

del "c:\kixtart.txt"
IF RedirectOutput("c:\kixtart.txt")
ENDIF

?"- 1-"
?"- 2-" $path="d:\Program Files\nav\*.vdb" ; <-- change be changed to other filenames
?"- 3-" $temp_file="%temp%\kixtart.tmp"
?"- 4-" ;
?"- 5-" DEL $temp_file
?"- 6-" SHELL "%comspec% /c dir "+CHR(34)+$path+CHR(34)+" /o:d /b /s >"+$temp_file
?"- 7-" SHELL "%comspec% /c echo ~~~completed~~~ >>"+$temp_file
?"- 8-" IF (Exist($temp_file) = 1)
?"- 9-" IF (Open(1,$temp_file) = 0)
?"- 10-" $file=ReadLine(1)
?"- 11-" $file_prev=$file
?"- 12-" IF (INSTR($file,"~~~completed~~~") <> 0)
?"- 13-" $completed="yes"
?"- 14-" ELSE
?"- 15-" $completed="no"
?"- 16-" ENDIF
?"- 17-" WHILE ($completed <> "yes")
?"- 18-" $file=ReadLine(1)
?"- 19-" IF (INSTR($file,"~~~completed~~~") = 0)
?"- 20-" IF (GetFileTime($file) > GetFileTime($file_prev))
?"- 21-" ? " delete "+$file_prev+" ("+GetFileTime($file_prev)+" "+GetFileSize($file_prev)+" bytes)"
?"- 22-" IF (SetFileAttr($file_prev, 32) <> 0)
?"- 23-" ? "Error "+$error+": "+@serror
?"- 24-" ENDIF
?"- 25-" DEL $file_prev
?"- 26-" $file_prev=$file
?"- 27-" ELSE
?"- 28-" ? " delete "+$file+" ("+GetFileTime($file)+" "+GetFileSize($file)+" bytes)"
?"- 29-" IF (SetFileAttr($file, 32) <> 0)
?"- 30-" ? "Error "+$error+": "+@serror
?"- 31-" ENDIF
?"- 32-" DEL $file
?"- 33-" ENDIF
?"- 34-" ELSE
?"- 35-" $completed="yes"
?"- 36-" ENDIF
?"- 37-" LOOP
?"- 38-" ?
?"- 39-" IF (INSTR($file_prev,"~~~completed~~~") = 0)
?"- 40-" ? " most recent file = "+$file_prev+" ("+GetFileTime($file_prev)+" "+GetFileSize($file_prev)+" bytes)"
?"- 41-" ELSE
?"- 42-" ? " no file '"+$path+"'"
?"- 43-" ENDIF
?"- 44-" ENDIF
?"- 45-" ENDIF
?"- 46-" DEL $temp_file


The file c:\kixtart.txt will contain the debug output.
An example of this file can be:

code:

- 1-
- 2-
- 3-
- 4-
- 5-
- 6-
- 7-
- 8-
- 9-
- 10-
- 11-
- 12-
- 13-
- 14-
- 17-
- 38-

- 39-
- 42-
no file 'd:\Program Files\nav\*.vdb'
- 43-
- 44-
- 45-
- 46-



When you will get the same message you can see which line
procedure that message.
By email will I send you both files. So a possible disruption
will be prevented.

Greetings.



MCA
(KiX Supporter)
2001-05-01 02:58 AM
Re: Removing Norton Anti-Virus .vdb Files

We can find your email address. Please send it to us.


MCA
(KiX Supporter)
2001-05-01 04:28 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

Be sure about the kixtart version your are using. It can be create your error message.
You can verify it by using our script version.kix and you can update it with kix363update.exe /q.
Both files you can find at our site
http://home.wanadoo.nl/scripting

Greetings.

**DONOTDELETE**
(Lurker)
2001-05-01 02:53 PM
Re: Removing Norton Anti-Virus .vdb Files

I still get the following error message:

Command Line:
D:\Projects\Kixtart Scripting\kix32.exe /d "D:\Projects\Kixtart Scripting\Board\nav-debug.kix"

Error - Abnormal program termination, exit code: 1(0x01)

I'm running version 2.0 (which may be the problem) Which version should I download?

MCA
(KiX Supporter)
2001-05-02 08:15 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

Which software has version 2.0?

Please download version.kix to your directory d:\projects and run the script.
The script we submitted was verified at kixtart version 3.63.
If version isn't 3.63 please download kix363update.exe and run version.kix after running the update.
Greetings.

btw: what kind of windows version your are using?

**DONOTDELETE**
(Lurker)
2001-05-03 03:04 PM
Re: Removing Norton Anti-Virus .vdb Files

MCA,

I'm running Windows 2000, and version 2.0 of Kixtart.

MCA
(KiX Supporter)
2001-05-03 05:32 PM
Re: Removing Norton Anti-Virus .vdb Files

Dear members,

Was I missing something. Is there really distribute a version 2.0 of Kixtart?
Please email a copy of this version. So I can check the code again.
Thanks.
Greetings.

**DONOTDELETE**
(Lurker)
2001-05-16 02:06 AM
Re: Removing Norton Anti-Virus .vdb Files

MCA,

Here's the results of the debug script.

20-Script error : expected expression !.
?"- 20-" IF (GetFileTime($file) > GetFileTime($file_prev)



**DONOTDELETE**
(Lurker)
2001-05-16 02:21 AM
Re: Removing Norton Anti-Virus .vdb Files

Here are the result of the debug query you sent. Sorry I'm just now replying, however it's been kinda hectic around here. Thanks!

- 1-
- 2-
- 3-
- 4-
- 5-
- 6-
- 7-
- 8-
- 9-
- 10-
- 11-
- 12-
- 15-
- 16-
- 17-
- 18-
- 19-
- 20-Script error : expected expression !.
?"- 20-" IF (GetFileTime($file) > GetFileTime($file_prev))"



MCA
(KiX Supporter)
2001-05-16 03:37 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

We receive your mail.

Please put the output of command d:\Program Files\nav\*.vdb /a /o:n /s to the board.
Thanks.
Greetings.

[This message has been edited by MCA (edited 16 May 2001).]

**DONOTDELETE**
(Lurker)
2001-05-17 12:31 AM
Re: Removing Norton Anti-Virus .vdb Files

Here ya go!


- 1-
- 2-
- 3-
- 4-
- 5-
- 6-
- 7-
- 8-
- 9-
- 10-
- 11-
- 12-
- 13-
- 14-
- 17-
- 38-

- 39-
- 42-
no file 'd:\Program Files\nav\*.vdb/a /o:n /s'
- 43-
- 44-
- 45-
- 46-

MCA
(KiX Supporter)
2001-05-18 07:37 AM
Re: Removing Norton Anti-Virus .vdb Files

Dear,

We investigate your problem but we can reproduce your message about
"script error".
We have check it with and without that kind of files and
with many of the same files (same date & time).
Result without any VDB file:

code:

- 1-
- 2-
- 3-
- 4-
- 5-
- 6-
- 7-
- 8-
- 9-
- 10-
- 11-
- 12-
- 13-
- 14-
- 17-
- 38-

- 39-
- 42-
no file 'c:\temp\*.vdb'
- 43-
- 44-
- 45-



Result with one VDB file:
code:

- 1-
- 2-
- 3-
- 4-
- 5-
- 6-
- 7-
- 8-
- 9-
- 10-
- 11-
- 12-
- 15-
- 16-
- 17-
- 18-
- 19-
- 35-
- 36-
- 37-
- 38-

- 39-
- 40-
most recent file = c:\temp\z.vdb (2001/05/18 04:08:27 4 bytes)
- 41-
- 44-
- 45-


Result with many of same VDB files

code:

- 1-
- 2-
- 3-
- 4-
- 5-
- 6-
- 7-
- 8-
- 9-
- 10-
- 11-
- 12-
- 15-
- 16-
- 17-
- 18-
- 19-
- 20-
- 28-
delete c:\temp\z1.vdb (2001/05/18 04:08:27 4 bytes)
- 29-
- 32-
- 33-
- 34-
- 37-
- 18-
- 19-
- 20-
- 28-
delete c:\temp\z2.vdb (2001/05/18 04:08:27 4 bytes)
- 29-
- 32-
- 33-
- 34-
- 37-
- 18-
- 19-
- 20-
- 28-
delete c:\temp\z3.vdb (2001/05/18 04:08:27 4 bytes)
- 29-
- 32-
- 33-
- 34-
- 37-
- 18-
- 19-
- 35-
- 36-
- 37-
- 38-

- 39-
- 40-
most recent file = c:\temp\z.vdb (2001/05/18 04:08:27 4 bytes)
- 41-
- 44-
- 45-



Greetings.

------------------
Site map: