Skip to main content

Deleting a virus via DOS


1. locate the directory or drive:
2. Find a file extension in a directory:
3. Delete files with a particular extension:

1. locate the directory or drive:
 cd <path of the folder/drive>
or 
<drive letter>:

for eg my virus is located in D drive, type:
cd windows/system32

for eg my virus is located in D drive, type:
D:

2. Find a file extension in a directory:
       dir *.<ext> (restricted to a particular directory)
         or
       dir *.<ext> /s /p  (all files in folders and subfolders of a particular extension(drive):

The /s option directs a search of all folders on the hard drive;
 the /p option pauses the display after each screen of text. Double-check everything
<ext> extension

for eg. you have to find all files(viruses) having extension .inf,  type:
      dir *.inf /s /p


3. Delete files with a particular extension:
        Del *.<ext> (restricted to a particular directory)
         or
     Erase /s/q *.<ext> 

for eg. you have to delete all files(viruses) having extension .inf,  type:
   Erase /s/q *.inf

Comments

Popular posts from this blog

MATLAB shortcut in ubuntu/linux

Create a symbolic link in  /usr/local/bin , i.e. as su ln -s /usr/local/MATLAB/R2013a/bin/matlab /usr/local/bin/matlab 1.download your own icon- sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png 2.give your access permission sudo touch /usr/share/applications/matlab.desktop 3.edit your .desktop file sudo gedit /usr/share/applications/matlab.desktop 4.and paste the following into the document. #!/usr/bin/env xdg-open [Desktop Entry] Type=Application Icon=/usr/share/icons/matlab.png Name=MATLAB R2014a Comment=Start MATLAB - The Language of Technical Computing Exec=matlab -desktop Categories=Development;

Crack windows 7 password via ubuntu boot

Requirements: 1.ubuntu live cd or pendrive(consisting of ubuntu setup) http://www.ubuntu.com/download/alternative-downloads Procedure: 1.start up your computer 2.boot ubuntu linux cd 3.select the option try ubuntu option (DO NOT INSTALL UBUNTU  its not required) by selecting this option you do not install the system rather the ubuntu os is started via live cd or USB 4.In the ubuntu click on the folder ie the file explorer in the left panel 5.Goto the windows 7 system drive path : windows>system32> rename the magnify.exe as cmd.exe and rename the cmd.exe as magnify.exe (NOTE: While renaming you cant rename directly as both file cannot have same names  take a copy of both these files in any other folder in case you mess up ) 6. reboot the system and start windows 7.On the password screen you will see an ease of access (blue icon)  in the bottom left corner. click on it and select the magnifier click OK.(It will open the command prompt) 8.In ...