Showing posts with label cmd. Show all posts
Showing posts with label cmd. Show all posts

Sunday 31 July 2016

How to Remove Computer Virus Using Command Prompt (CMD)

Leave a Comment



Each file and folder have the following attributes:

1).  Archive A
2).  Read Only R
3).  Hidden H
4).  System S
-(minus) sign before an attribute it means removing attributes and +(plus) sign mean giving attributes to the file or folder.
example ) attrib -r -a -s -h file.txt  this will remove all attributes from file.txt  and attrib +r +a +s +h file.txt  will give all attributes to file.txt .
If pen drive or other hard drive is infected by virus ,Command prompt is the best option.Follow the steps given below.

1).  Go to the command prompt by start>all programs>accessories>command prompt or press windows key+r and enter cmd .

2).  Go to the drive where you want to delete virus example write d: to go to D drive .

3).  Type “attrib -r -s -h *.* /s /d” without quotations  and press enter .

4)press dir /a .

5).  Delete all the .inf, .exe , .dll, .log extension file if they are not your files by using dos del command .

Example:
del autorun.inf
if any file is not deleting rename that file by rename command
Example:  rename dst.exe ms.bak this will rename dst.exe to ms.bak

Now Your pen drive is virus free .

Read More

Sunday 1 May 2016

SHUT DOWN ANY PC ON YOUR LAN USING COMMAND PROMPT

Leave a Comment

This trick will shutdown a selected pc from Your LAN network. You can apply this trick to your office or school. but I take no responsibilities for any action. It's just for fun. Here is how to use this trick :

1. Go to Start > Run and type in cmd

2. You will see the command prompt window. Now type in this command line.

shutdown.exe -i

And hit Enter. You will see the remote shutdown Window. If you know someone’s IP on a computer in your Local Area network, type in their IP Address after clicking the add button.

3. After entering the IP Address click OK. Now watch the person’s face as their computer shuts down.

Some friends have asked me that they got Access Denied error for the remote shutdown. Add the user with the privilege to force a remote shutdown on the computer you are about to Shutdown. To do this go to control panel > Administrative Tools > Local Security Settings. Now go to Security Settings > Local Policies > User Rights Assignment. Double-click on Force shutdown from a remote system in the right pane and click on Add User or Group. Add the computer that runs the remote shutdown command.


Or you can do this go the computer you are about to Shutdown
a) Go to Start > Run > type in Regedit in the dialog box and hit enter
b) Go to My Computer/HKEY_LOCAL_MACHINE /system/current control set/control/lsa
c) Find “force guest” in the right pane Double click on it to modify This entry change the value from “1″ entry to “0″


Read More

Saturday 5 March 2016

HOW TO ENABLE COPY PASTE IN CMD – WINDOWS

Leave a Comment



By default, Windows does not allow users to Copy text and Paste it in Command prompt Or Copy text from Command prompt and paste it elsewhere. But there is an option in CMD itself to enable Copy & Paste Text in Windows Command Prompt.
Today in this tutorial we will learn how to Enable Copying and Pasting Texts in the Windows Command prompt. One of the main advantages of this will be that you can copy any command that you find on the internet or from any word/excel file and paste it directly in CMD and execute that command just like that.

Step 1: Open CMD, Just type CMD in search or Press Win + X key to select Command Prompt.
Step 2: Right-click on the Title of the CMD window and Select Properties just like its shown in the below Picture

Enable Copy paste in CMD


Step 3: You will see a Pop-up Window coming up, Now on the Right-hand side, Under Edit Options, Just Check Quick Edit Mode and click OK
Step 4: Everything is Done, Now just Copy any Text from Here or Anywhere else Using CTRL + C keys and just Right-click using your mouse on CMD. You will see that the text is been pasted automatically in CMD. Please Understand that Using CTRL + C to Copy text is Important.
Likewise, if you wish to Copy Text from CMD to paste elsewhere then Just Select the Text in CMD and Again just Right Click with the mouse. Your Text is Copied and ready to Paste it in any Document you want.
This Doesn’t Limit you to just Text you can even copy File or Folder path and paste it in CMD. Everything that you have to type manually can be copied from somewhere and pasted directly to CMD with this small Tweak
So this was just a small Tip I wanted to share with my Readers so that you don’t have to Type any long Command in CMD which if typed incorrectly can cause errors. I hope this will help some Of you.
Read More