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

Basics of MS-DOS commands (PDF downloadable)

MS-DOS basic concepts and commands with examples: https://drive.google.com/file/d/0B3e9v7xyGe0ubVBHWnpwUW1ZYnc/edit?usp=sharing MS-DOS simple commands with exmaples: https://drive.google.com/file/d/0B3e9v7xyGe0uVXhlbm9nb01EWWs/edit?usp=sharing

Why do we use log?

"Logarithm" is a word made up by Scottish mathematician John Napier (1550-1617), from the Greek word logos meaning "proportion, ratio or word" and arithmos meaning "number", ... which together makes "ratio-number" ! In its simplest form logarithm gives the info about:            how many a number can give another number basically its used to get the power ie. the exponent of the base number in the log with respect to the log number for eg:  1.  log 2 ( 8 )= 3     ie   2 3   = 8 how many a number (to the base number) (2) another number ( log  number) (8) raise to power (3) 2.    log 2 ( 4 )= 2     ie   2 2   =   4  same goes for the negative logarithms: 1.                    since            reference:  www.mathsisfun.com/algebra/logarithms.html

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;