Jump to content











Photo

empty System Volume Information


  • Please log in to reply
6 replies to this topic

#1 Hima

Hima

    Member

  • Members
  • 51 posts
  • Location:cairo
  •  
    Egypt

Posted 10 September 2010 - 12:01 AM

Hi everyone

you can empty system volume information easy in xp windows

by this batch

@echo off

Del /S /Q "c:\System Volume Information"

Del /S /Q "d:\System Volume Information"

Del /S /Q "e:\System Volume Information"

Del /S /Q "f:\System Volume Information"

Del /S /Q "G:\System Volume Information"

Del /S /Q "h:\System Volume Information"

Del /S /Q "i:\System Volume Information"

Del /S /Q "j:\System Volume Information"

Del /S /Q "k:\System Volume Information"

Del /S /Q "l:\System Volume Information"

Del /S /Q "m:\System Volume Information"

Del /S /q "p:\System Volume Information"

Del /S /q "o:\System Volume Information"

Del /S /q "n:\System Volume Information"

exit


sorry for my english

#2 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 10 September 2010 - 06:17 AM

you can empty system volume information easy in xp windows


What is so special about "System Volume Information" ? I mean this batch can evacuate any folder given its name is substituted in place of SVI folder, isn't it? The only point it reminds the batch writers that how embedded spaces are to be quoted in batches. Altenatively, u can use SYSTEM~1(the DOS name that u obtain by DIR /X switch) instead of quoting the folder name.

#3 Hima

Hima

    Member

  • Members
  • 51 posts
  • Location:cairo
  •  
    Egypt

Posted 10 September 2010 - 07:04 AM

What is so special about "System Volume Information" ?


System Volume Information Contains the files and when a virus accumulates in it


I mean this batch can evacuate any folder given its name is substituted in place of SVI folder


Of course , sometimes users cant create any folder under this name (SVI)

#4 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 10 September 2010 - 07:25 AM

System Volume Information Contains the files and when a virus accumulates in it


Ur description is a bit misleading, do go through the following:
http://www.theelderg...ion_folder1.htm
http://support.microsoft.com/kb/309531

Of course , sometimes users cant create any folder under this name (SVI)


If u try to create a folder named "System Volume Information" in the root of a drive which already contains it, obviously Windows won't permit it. This is the case u r referring to as "sometimes. Not only for this folder, but it is true in general. "But creation of the folder within any other directory is permissible. Give a try.

#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15020 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 September 2010 - 09:51 AM

Just for the record, batch files allow FOR loops.

Like:
@ECHO OFF

SETLOCAL ENABLEDELAYEDEXPANSION

SETLOCAL ENABLEEXTENSIONS

SET Drives=cdefghijklmnopqrstuvwxyz

FOR /L %%A IN (0,1,23) DO (

ECHO !Drives:~%%A,1!

)

Or:
@ECHO OFF

SET Drives=c d e f g h i j k l m n o p q r s t u v w x y z

FOR %%A IN ( %Drives% ) DO ECHO %%A

:hyper:
Wonko

#6 Vortex

Vortex

    Frequent Member

  • Advanced user
  • 239 posts

Posted 10 September 2010 - 10:07 AM

Hi Hima,

A small note : you need to grant the right NTFS permissions to access the SVI folder. A default windows installation authorizes only the SYSTEM account to reach the SVI. Naturally, I assume that you have a NTFS system partition.

#7 Zharif

Zharif

    Frequent Member

  • .script developer
  • 153 posts
  • Location:Germany
  •  
    Germany

Posted 10 September 2010 - 06:53 PM

I once did it in this way:
- Get the UserName (stored in the env.)
- Getting all NTFS-Drives of the running system (NTFS-check by Rob Van Der Woude)
- Using cacls.exe to edit the ACL of the current user.
- Deleting SVI afterwards

SVI of the system drive cannot be deleted by this script.

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users