Monday, 6 March 2017

HOW TO USE THE COMMAND PROMPT IN WINDOWS

The command prompt is very powerful tool in windows winch can be used to perform several actions. This tutorial is to enlighten us on how to effectively use the commands to perform various actions.

Table of Contents
  1. Introduction
  2. Using the Command Prompt or Dos Window
  3. Useful commands
  4. Redirectors
  5. Batch Files
  6. Console Programs
  7. Conclusion
Introduction
Before Windows was created, the most common operating system that ran on IBM PC compatibles was DOS. DOS stands for Disk Operating System and was what you would use if you had started your computer much like you do today with Windows. The difference was that DOS was not a graphical operating system but rather purely textual. That meant in order to run programs or manipulate the operating system you had to manually type in commands. When Windows was first created it was actually a graphical user interface that was created in order to make using the DOS operating system easier for a novice user. As time went on and newer versions of Windows were developed DOS was finally phased out with Windows ME. Though the newer operating systems do not run on DOS, they do have something called the command prompt, which has a similar appearance to DOS. In this tutorial we will cover the basic commands and usage of the command prompt so that you feel comfortable in using this resource.

Using the Command Prompt or Dos Window
When people refer to the command prompt they may we refer to it in different ways. They may refer to it as a shell, console window, a command prompt, a cmd prompt, or even dos. In order to enter the command prompt you need to run a program that is dependent on your operating system. Below we list the programs that you need to run to enter a command prompt based on the version of Windows you are running.
Operating System
Command
Notes
Windows 3.1,.3.11, 95, 98, ME command.com This program when run will open up a command prompt window providing a DOS shell.
Windows NT, 2000, XP, 2003 cmd.exe This program will provide the native command prompt. What we call the command prompt.
Windows NT, 2000, XP, 2003 command.com This program will open up a emulated DOS shell for backwards compatibility. Only use if you must.
To run these programs and start a command prompt you would do the following steps:
Step 1: Click on the Start Menu
Step 2: Click on the Run option
Step 3: Type the appropriate command in the Open: field. For example if we are using Windows XP we would type cmd.exe.
Step 4: Click on the OK button
After following these steps you will be presented with a window that look similar to Figure 1 below.

Windows Command Prompt
Figure 1. Windows Command Prompt
 
The command prompt is simply a window that by default displays the current directory, or in windows term a folder, that you are in and has a blinking cursor ready for you to type your commands. For example in Figure 1 above you can see that it says C:\WINDOWS>. The C:\WINDOWS> is the prompt and it tells me that I am currently in the c:\windows directory. If I was in the directory c:\program files\directory the prompt would instead look like this: C:\PROGRAM FILES\DIRECTORY>.
To use the command prompt you would type in the commands and instructions you want and then press enter. In the next section we will discuss some useful commands and how to see all available built in commands for the command prompt.
 
Useful commands
The command.com or cmd.exe programs have built in commands that are very useful. Below I have outlined some of the more important commands and further instruction on how to find information on all the available commands.
The Help command - This command will list all the commands built into the command prompt. If you would like further information about a particular command you can type help commandname. For example help cd will give you more detailed information on a command. For all commands you can also type the command name followed by a /? to see help on the command. For example, cd /?
The Exit command - This command will close the command prompt. Simply type exit and press enter and the command prompt will close.
The CD command - This command allows you to change your current directory or see what directory you are currently in. To use the CD command you would type cd directoryname and press enter. This would then change the directory you are currently in to the one specified. When using the cd command you must remember how paths work in Windows. A path to a file is always the root directory, which is symbolized by the \ symbol, followed by the directories underneath it. For example the file notepad.exe which is located in c:\windows\system32 would have a path as follows \windows\system32\notepad.exe. If you want to change to a directory that is currently in your current directory you do not need the full path, but can just type cd directoryname and press enter. For example if you are in a directory called c:\test, and there were three directories in that the test directory called A, B, and C, you could just type cd a and press enter. You would then be in the c:\test\a. If on the other hand you wanted to change your directory to the c:\windows\system32 directory, you would have to type cd \windows\system and press enter.
The DIR command - This command will list the files and directories contained in your current directory, if used without an argument, or the directory you specify as an argument. To use the command you would just type dir and press enter and you will see a listing of the current files in the directory you are in, including information about their file sizes, date and time they were last written to. The command will also show how much space the files in the directory are using and the total amount of free disk space available on the current hard drive. If I typed dir \test I would see the contents of the c:\test directory as shown in Figure 2 below.
 
Dir Command
Figure 2. DIR of c:\test
 
If you examine the screen above you will see a listing of the directory. The first 2 columns are the date and time of the last write to that file. Followed by whether or not the particular entry is a directory or a file, then the size of the file, and finally the name of the file. You may have noticed that there are two directories named . and .., which have special meaning in operating systems. The . stands for the current directory and the .. stands for the previous directory in the path. In the example above, .. stands for c:\windows.
Also note for many commands you can use the * symbol which stands for wildcard. With this in mind, typing dir *.txt will only list those files that end with .txt.
The Copy command - This command allows you to copy files from one location to another. To use this command you would type
copy filetocopy copiedfile. For example if you have the file c:\test\test.txt and would like to copy it to c:\windows\test.txt you would type
copy c:\test\test.txt c:\windows\test.txt and press enter. If the copy is successful it will tell you so and give you back the prompt. If you are copying within the same directory you do not have to use the path. Here are some examples and what they would do:
copy test.txt test.bak Copies the test.txt file to a new file called test.bak in the same directory
copy test.txt \windows Copies the test.txt file to the \windows directory.
copy * \windows Copies all the files in the current directory to the \windows directory.
The Move command - This command allows you to move a file from one location to another. Examples are below:
move test.txt test.bak Moves the test.txt file to a new file renaming it to test.bak in the same directory.
move test.txt \windows Moves the test.txt file to the \windows directory.
move * \windows Moves all the files in the current directory to the \windows directory.
At this point you should use the help command to learn about the other available commands.
 
Redirectors
Redirectors are an important part to using the command prompt as they allow you to manipulate how the output or input of a program is displayed or used. Redirectors are used by appending them to the end of a command followed by what you are redirecting to. For example: dir > dir.txt. There are four redirectors that are used in a command prompt and they are discussed below:
> This redirector will take the output of a program and store it in a file. If the file exists, it will be overwritten. If it does not exist it will create a new file. For example the command dir > dir.txt will take the output of the dir command and place it in the dir.txt file. If dir.txt exists, it will overwrite it, otherwise it will create it.
>> This redirector will take the output of a program and store it in a file. If the file exists, the data will be appended to the current data in the file rather than overwriting it. If it does not exist it will create a new file. For example the command dir >> dir.txt will take the output of the dir command and appends it to the existing data in the dir.txt file if the file exists. If dir.txt does not exist, it will create the file first.
< This redirector will take the input for a program from a specified file. For example the date command expects input from a user. So if we had the command date < date.txt, it would take the input for the date program from the information contained in the date.txt file.
| This redirector is called a pipe. It will take the output of a program and pipe it into another program. For example dir | sort would take the output of the dir command and use it as input to the sort command.
 
Batch Files
Batch files are files that have an extension ending in .bat. They are simply scripts that contain command prompt commands that will be executed in the order they are listed. To create a batch file, just make a file that ends in .bat, such as test.bat, and inside the file have the commands you would like. Each command should be on its own line and in the order you would like them to execute.
Below is example batch file. It has no real use but will give you an example of how a batch files works. This test batch file contains the following lines of text:
cd
cd \test
dir
cd \
If I was to run the test.bat file I created I would have output that looks like the following:
 
Batch File
Figure 3: Example of a batch file running.
 
As you can see from the figure above, my batch file executed each command in my batch file in the sequence they were written in the batch file.

Console Programs
If a program is created for express purpose of running within a command prompt, or console window, that program is called a console program. These are programs that are not graphical and can only be run properly from within a command prompt window.
Below is a list of sites that contain console programs that may be useful to you:

http://unxutils.sourceforge.net/
There are many more sites that have tools available. Just do a Google search on windows console programs.

Conclusion
The command prompt can be a very powerful and versatile tool for a computer user. Hopefully this brief introduction into the command prompt will enable you to use your computer more efficiently. If you have any questions on how to use the command prompt, please do not hesitate to ask us in the computer help forums.
--
Lawrence Abrams


Users who read this also read:

  • How to use the Windows 7 System Recovery Environment Command Prompt Image
    How to use the Windows 7 System Recovery Environment Command Prompt
    The Windows 7 System Recovery Command Prompt is a text-based console that allow you to perform maintenance and recovery tasks on your computer by typing the commands that you would like to execute. These commands allow you to perform a wide variety of tasks such as replace infected files, delete infections, repair boot up configurations for your hard drive, resize hard drive partitions, as well as ...
  • How to use the Command Prompt in the Vista Windows Recovery Environment Image
    How to use the Command Prompt in the Vista Windows Recovery Environment
    The Windows Recovery Environment Command Prompt is a text-based console that allows that allows you to perform many tasks on your computer by typing in the commands that you would like to execute. These commands allow you to perform a range of tasks from managing the files on your hard drives, formatting and repartitioning hard drives, configuring how Windows boots, deleting and copying files, ...
  • How to create a command-line toolkit for Windows Image
    How to create a command-line toolkit for Windows
    If you are a system administrator, IT professional, or a power user it is common to find yourself using the command prompt to perform administrative tasks in Windows. Whether it be copying files, accessing the Registry, searching for files, or modifying disk partitions, command-line tools can be faster and more powerful than their graphical alternatives. This tutorial will walk you through ...
  • How to start an Elevated Command Prompt in Windows 7 and Vista Image
    How to start an Elevated Command Prompt in Windows 7 and Vista
    A Command Prompt allows you to run programs, manipulate Windows settings, and access files by typing in commands that you wish to execute. To start a Command Prompt you simply need to type cmd.exe in the search field in the Start menu or click on Start, then Accessories, and then click on the Command Prompt icon. A window will appear, called the Command Prompt, that will open in your user profile ...
  • How to create a floppy boot disk in Windows Image
    How to create a floppy boot disk in Windows
    A boot disk is a floppy or a CD that you can use to boot your computer into a state in which you can use it to fix a problem. There will be times that your computer may not boot up properly and thus you can not access files or attempt fixes that you are asked to do. When situations like this occur, having a boot disk is necessary as you will be able to access files and attempt fixes that may allow ..

Sunday, 5 March 2017

TOP 10 GENIUS HACKERS

The genius top 10 hackers of the world

Hacking is an art, which needs great knowledge of computer programming plus an intelligent mind to do that. There have been many great hackers in the world and they have done many wonderful and bold things in their life, which have made them famous. The genius hacker top 10 contains the top ten hackers of all time, which have done amazing things by their hacking abilities. They have hacked world’s most secured systems and they have got access to those files, which were their aim since the start. Now don’t waste your time and check the list of top ten genius hackers of all time.
Albert Gonzalez
  1. Albert Gonzalez:
Do you use credit card and think it is the safest way of buying things? If yes, then you don’t know anything about Albert Gonzalez. He is the man, who has stolen through the credit cards of netizens and it is the biggest online theft done by an individual. That’s why he has got this position in genius hacker top 10.
  1. Astra:(Name disclosed by Media)
All of us want to know that which kind of new weapons are coming in future. Well, Astra was curious enough to know it and he hasn’t waited to know and hacked a Greek Mathematician into France’s Dassault group. He has stolen the information regarding weapons and sold those details to many other countries. Still there is no real identity found behind Astra.
  1. Anonymous:Anonymous hacker groups
A group of hackers call their self anonymous, who have hacked financial details of many governments, brands and religious groups. Used those financial details to steal money and they have gave those money to poor people. It seems quite similar to the acts of Robin Hood, but Anonymous is today’s digital Robin hood. This spot in Genius hacker top 10 will always remain safe for Anonymous.
  1. Kevin Mitnick:Kevin Mitnick top 10 hacker
Today he is a security consultant of industries, but during the age of mid 40s he had done many amazing works related to computer hacking. Kevin had hacked the Nokia, Motorola and Pentagon. He was found guilty of his acts and he has been locked in person for his guilt. Today he is an entrepreneur and serving many agencies for their security.
  1. Kevin Poulsen:Top 10 hacker of all time
He is a former black hat hacker, who had hacked a live radio contest to win Porsche. Kevin has tried to win the car by trying his skills of hacking. Usually people make calls in a radio contest to win such prices, but Kevin poulsen has done it through his abilities of hacking. 
  1. Jonathan James:Jonathan James top 10 hacker
He has got the fifth spot in genius hacker top 10 because of his ability of hacking Defense Threat Reduction Agency of US department at the age of 16. Today he is no more, but his name is still famous among the top ten hackers of the world.
  1. Mathew Bevan and Richard Pryce:Mathew Bevan and Richard Pryce
These both have hacked the US military system and they had utilized these systems to penetrate foreign systems.
  1. Adrian Lamo:Adrian Lamo top 10 hacker
He has hacked Yahoo, Google, Microsoft, The New York Times and this continuation ended on his arrest. Today he is a US threat analysis.
LulzSec group of hacker
  1. LulzSec (Group but one Small Man was Re veiled ):
It is a group of hackers, which has hacked CIA, FBI, News International and Sony just to prove that their security systems are not safe against hackers. Yet there is no details regarding the masterminds of this group, but they are active.
  1. Gary McKinnon:Gary McKinnon top 10 must powerful hacker
This man has hacked NASA just to remove his curiosity of knowing about aliens. He had installed viruses in 97 military and NASA’s computers and checked various files to know the truth.

Friday, 3 March 2017

MAKE YOUR COMPUTER WELCOME YOU ANYTIME YOU LOG ON.

Do you watch movies? Computers in movies welcome their users by calling out their names? Do you also want to know how you can achieve similar results on your PC and have a computer said welcome.

Then you are at the right place, this article describes exactly how you can make your computer welcome you like this.

Make Windows Greet you with a Custom Voice Message at Startup

To use this trick, follow the instructions given below:-


  1. Click on Start. Navigate to All Programs, Accessories and Notepad.
  2. Copy and paste the exact code given below.
Dim speaks, speech
speaks="Welcome to your PC, Username"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks
     3.  Replace Username with your own name.
     4.  Click on File Menu, Save As, select All Types in Save as Type option, and save the file as Welcome.vbs or "*.vbs".
     5.  Copy the saved file.
     6.  Navigate to C:\Documents and Settings\All Users\Start Menu\Programs\Startup (in Windows XP) and to C:\Users\ {User-Name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (in Windows 10, Windows 8, Windows 7 and Windows Vista) if C: is your System drive. AppData is a hidden folder. So, you will need to select showing hidden folders in Folder options to locate it. If you have trouble locating the startup folder, press Windows key+R and type shell:startup in the Run dialog box and press Enter. The startup folder will open.
     7.  Paste the file.



 Make your Computer Welcome you at startup

Now when the next time you start your computer, Windows will welcome you in its own computerized voice.

Welcom



You are most welcome to Nankong’s Blog where we learn, sell and advertise.
This blog will also enlighten you about basic computer tricks in our everyday life and how to do basic configuration on your mobile phones and computers, moreover you will be exposed to some application and how to use them.
Your comments are most welcome.
Relax and enjoy.
Thank you.
Achana Nankong Fracis

HOW TO RESET YOUR ANDRIOD PHONE WHEN YOU FORGET YOUR PASSWORD

  1.  Turn off your Android device.
  2. Press and hold the "power", "volume down", and "camera" buttons simultaneously. If your mobile device does not have a camera function, just press and hold the "power" and "volume down" buttons.
  3. Release the buttons once your Android device is powered on.
  4. Scroll using your "Volume up and down" button until you find the "Factory Data Reset" option.
  5. Tap the "Factory Data Reset" option.
    Jerry- factory reset.jpg
  6. Tap "Reset phone".
  7. This will erase all of your data, but it will allow you to unlock your Android mobile device.
  8. A confirmation message to clear data will appear.
  9. Select "Erase everything", which will permanently delete all of the data.
  10. You should now be able to use your Android device without previously having had a Google Account or email address registered.
  11. Make sure you review this guide to see the standard recovery options, and set up an alternate method to recover your phone in the future, so you don't have to perform another "Factory Data Reset."

HOW TO USE THE COMMAND PROMPT IN WINDOWS

The command prompt is very powerful tool in windows winch can be used to perform several actions. This tutorial is to enlighten us on how to...