PROGRAMMINGINTRODUCTIONMS DOS COMMAND
What is DOS?Short for Microsoft Disk OperatingSystem, MS-DOS is a non-graphical commandline operating system derived from ...
Today, MS-DOS is no longer used; however,the command shell, more commonly knownas the Windows command line is still usedby...
WHAT WILL YOULEARN?
1. How to Hide or Dismount a Partition in Windows2. An Ode to the Command Prompt - the MostPowerful and Least Used Windows...
HOW TO OPENCOMMAND PROMPT INWINDOWS 7 ANDWINDOWS 8
1. Launch the Command Prompt UsingSearch.Search is very helpful, both in Windows 7 and Windows 8.In Windows 7, open the St...
2. Launch it from the Run WindowOne of the quickest ways to launch the Command Prompt isto use the Run window (press Win+R...
3. Launch it from the Start Menu/ScreenIf you like clicking on stuff and you are using Windows 7,open the Start Menu. Then...
4. Create a Command Prompt Shortcuton the DesktopIf you prefer using your own shortcuts, then don’t hesitateto create a sh...
5. Pin it to the Start Menu/Screen or theTaskbarIf you would rather have a clean Desktop, you might wantto pin the Command...
6. Launch it from Windows/File ExplorerLast but not least, you can open Windows Explorer (inWindows 7) or File Explorer (i...
HOW TO CUSTOMIZETHE COMMANDPROMPT
WHAT IS COMMANDPROMPT?Before Windows came into the picture, the most commonoperating system was DOS (Disk Operating System...
• This tool is generally used by more advancedusers such as system administrators to runcommands which might not be trigge...
ACCESS THEPROPERTIES OF THECOMMAND PROMPT
To access the properties of the CommandPrompt and customize them, right click on itswindow and select Properties.
You will notice four tabs with options that can beconfigured: Options, Font, Layout and Colors.
CUSTOMIZE THE COMMANDPROMPT CURSOR SIZE,BUFFERS AND EDIT MODES
First, you have the Options tab. It has threesections: Cursor Size, Command History and EditOptions.
For the cursor you can choose its size by using oneof the available options: Small, Medium or Large.Command History area y...
Number of Buffers determines for how manyconcurrent instances of the CommandPrompt you’re having separate buffers created....
A sample of how Quick Edit Mode works can beviewed in the capture below. With the mouse, Iselected the text for copying. I...
ADJUST THE FONT IN THECOMAMND PROMPT
In the Font tab you will be able to select the Fontsize and Font Type. Also, you can use the preview windowto see the effe...
CHANGE THE COMMANDPROMPT WINDOW SIZE
The Layout tab has three simple sections whereyou can configure the size of the CommandPrompt window and of the lines of t...
• Window Size - allows you to selectthe Width and Height of the window.• Window Position - enables you to configurethe Com...
HOW TO SET THECOMMAND PROMPTWINDOWS
• The Colors tab is easy to configure. There arefour items that can be customized:• Screen Text - allows you to set the co...
HOW TO USE THE BASICCOMAMNDS INCOMMAND PROMPT
HOW TO NAVIGATE BETWEEN FOLDERSThe first command from the list is CD (ChangeDirectory). This command enables you to change...
Now you are working on the C: drive. Ifyou need to go to a specific folder from thisdrive just type CD DIRECTORYNAME.The s...
When you need to go to one folder up, usethe cd.. command. Lets assume that youwant to go back to the Windows folder.Type ...
HOW TO ACCESS ACERTAIN DRIVE
To access another drive just type the driveletter followed by :. For example, wewanted to change the drive from C: to D:.W...
To change the drive and the directory at thesame time, use the cd command followed bythe /dswitch. The parameter is used t...
HOW TO VIEW THECONTENT OF A FOLDER
You can view the content of a folder byusing a simple command called DIR.
HOW TO CREATE AFOLDER USING THECOMMAND PROMPT
You can make a new directory usingthe MKDIR (Make Directory) command.The syntax of this command is MKDIRdirectory name.Let...
HOW TO RENAME FILESAND FOLDERS
To test if it worked, we will use againthe dir command. The newly created folderappears in the list.
To rename files and folders you need touse the REN (Rename) command.For folders just type ren foldernamenewname.
ren 7tutorials_v1 7tutorials_final
COPY FILES ANDFOLDERS
The Copy command allows you to copy filesfrom one location to another. To use thiscommand you have to typecopy locationfil...
To copy a folder and its content from alocation to another we will usethe XCOPY command followed by the /s /i operators.
DELETE FILES ANDWORDS
The DEL (Delete) is used to delete fileswithin the directories youve created.To delete all the files from a directory youh...
If we need to delete a single file we will usethe DEL command followed bythe filename.
The DEL command cannot be used to deletedirectories, therefore we will use anothercommand to remove any emptydirectory: RD...
LAUNCH AN APPLICATIONFROM COMAMND
To run a program from the CommandPrompt, you need only to navigate to thedirectory that contains the executable andsimply ...
For example, if we want to launchPaint using Command Line, we have to goto C:WindowsSystem32 and there we willfind the exe...
HOW TO USE HELP INCOMMAND PROMPT
To access help in Command Prompt you justhave to type the help command and thenpress Enter. A list off all availablecomman...
REPAIR MISSING ORCORRUPT FILES
NOTE: When a corrupt or missing systemfile prevents the operating system frombooting normally, you need to use theWindows ...
FIX MISSING ORCORRUPT FILES WHENTHE COMPUTER WON’TBOOT
In the Command Prompt window, usethe sfc command with two additionalparameters:/offbootdir and /offwindir.The parameter /o...
FIX MISSING ORCORRUPTED FILES
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming
Upcoming SlideShare
Loading in...5
×

Programming

443

Published on

Introduction to Computer Programming

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
443
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
28
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Programming

  1. 1. PROGRAMMINGINTRODUCTIONMS DOS COMMAND
  2. 2. What is DOS?Short for Microsoft Disk OperatingSystem, MS-DOS is a non-graphical commandline operating system derived from 86-DOS thatwas created for IBM compatible computers. MS-DOS originally written by Tim Paterson andintroduced by Microsoft in August 1981and waslast updated in 1994 when MS-DOS 6.22 wasreleased.
  3. 3. Today, MS-DOS is no longer used; however,the command shell, more commonly knownas the Windows command line is still usedby many users. In the picture to the right, isan example of what a MS-DOS windowmore appropriately referred to as theWindows command line looks like underMicrosoft Windows.
  4. 4. WHAT WILL YOULEARN?
  5. 5. 1. How to Hide or Dismount a Partition in Windows2. An Ode to the Command Prompt - the MostPowerful and Least Used Windows Tool3. Fix Issues with your Boot Records4. Repair Missing or Corrupt Files5. Advanced Commands for System Information &Managing Active Tasks6. Advanced Disk Management Commands7. Advance Networking Commands8. How to use Basic Commands9. How to Customize the Command Prompt
  6. 6. HOW TO OPENCOMMAND PROMPT INWINDOWS 7 ANDWINDOWS 8
  7. 7. 1. Launch the Command Prompt UsingSearch.Search is very helpful, both in Windows 7 and Windows 8.In Windows 7, open the Start Menu andtype command or cmd.Then, click the Command Prompt search result.
  8. 8. 2. Launch it from the Run WindowOne of the quickest ways to launch the Command Prompt isto use the Run window (press Win+Ron your keyboard toopen it).Then, type cmd or cmd.exe and press Enter orclick/tap OK.
  9. 9. 3. Launch it from the Start Menu/ScreenIf you like clicking on stuff and you are using Windows 7,open the Start Menu. Then, go to All Programs ->Accessories.There you will find the Command Prompt shortcut.
  10. 10. 4. Create a Command Prompt Shortcuton the DesktopIf you prefer using your own shortcuts, then don’t hesitateto create a shortcut to the Command Prompt.
  11. 11. 5. Pin it to the Start Menu/Screen or theTaskbarIf you would rather have a clean Desktop, you might wantto pin the Command Prompt to the taskbar, the StartMenu (in Windows 7) or to the Start screen (in Windows 8).
  12. 12. 6. Launch it from Windows/File ExplorerLast but not least, you can open Windows Explorer (inWindows 7) or File Explorer (in Windows 8). Then, openthe partition where Windows is installed and browseto Windows -> System32.
  13. 13. HOW TO CUSTOMIZETHE COMMANDPROMPT
  14. 14. WHAT IS COMMANDPROMPT?Before Windows came into the picture, the most commonoperating system was DOS (Disk Operating System). It wasa text-based operating system, that enabled you to runprograms by manually typing in commands. The launch ofthe Windows operating system simplified the wholecomputing experience by making it more visual. Eventhough DOS has not been included in Windows operatingsystems for years, there still is the Command Prompt - thetext command-line interpreter, analog of the command shellof its old DOS ancestor.
  15. 15. • This tool is generally used by more advancedusers such as system administrators to runcommands which might not be triggered from thevisual interface of Windows.• Even though it may look a bit unfriendly, it doesnot mean that you cannot learn how to use it. Ifyou will follow our mini-series you will see thatthis tool is useful and can be used by anyone.
  16. 16. ACCESS THEPROPERTIES OF THECOMMAND PROMPT
  17. 17. To access the properties of the CommandPrompt and customize them, right click on itswindow and select Properties.
  18. 18. You will notice four tabs with options that can beconfigured: Options, Font, Layout and Colors.
  19. 19. CUSTOMIZE THE COMMANDPROMPT CURSOR SIZE,BUFFERS AND EDIT MODES
  20. 20. First, you have the Options tab. It has threesections: Cursor Size, Command History and EditOptions.
  21. 21. For the cursor you can choose its size by using oneof the available options: Small, Medium or Large.Command History area you can customize howmany commands are retained in the buffer.The buffer serves as a historical record of thecommands you have run and you can use the upand down arrow keys to navigate through thepreviously entered commands.
  22. 22. Number of Buffers determines for how manyconcurrent instances of the CommandPrompt you’re having separate buffers created.Discard Old Duplicates, allows Windows toremove duplicate command entries from the buffer.Edit Options area you have only twooptions: Quick Edit Mode and Insert Mode.
  23. 23. A sample of how Quick Edit Mode works can beviewed in the capture below. With the mouse, Iselected the text for copying. I pressed Enter andthe text was copied to the clipboard.
  24. 24. ADJUST THE FONT IN THECOMAMND PROMPT
  25. 25. In the Font tab you will be able to select the Fontsize and Font Type. Also, you can use the preview windowto see the effect of your settings before applying them.
  26. 26. CHANGE THE COMMANDPROMPT WINDOW SIZE
  27. 27. The Layout tab has three simple sections whereyou can configure the size of the CommandPrompt window and of the lines of text within it.The available options are as follows:• Screen Buffer Size - allows you to configure thenumber of characters that are displayed on a linein the Command Prompt window. This isachieved by adjusting the Width value, and thenumber of lines that are stored in memory, byadjusting the Height value;
  28. 28. • Window Size - allows you to selectthe Width and Height of the window.• Window Position - enables you to configurethe Command Prompts window distance fromthe left and top edges of the screen. This optionworks only if the Let System PositionWindow check box is not checked.• Let System Position Window - if its checked,you won’t be able to configure the windowposition settings.
  29. 29. HOW TO SET THECOMMAND PROMPTWINDOWS
  30. 30. • The Colors tab is easy to configure. There arefour items that can be customized:• Screen Text - allows you to set the color of thetext displayed in the Command Prompt window;• Screen Background - enables you to choose thebackground color of the Command Promptwindow;• Popup Text - allows you to set the color of thetext displayed in a pop-up window;• Popup Background - permits you to set thebackground color of a pop-up window.
  31. 31. HOW TO USE THE BASICCOMAMNDS INCOMMAND PROMPT
  32. 32. HOW TO NAVIGATE BETWEEN FOLDERSThe first command from the list is CD (ChangeDirectory). This command enables you to changethe current directory (or folder).The command CD takes you to the top of thedirectory tree.
  33. 33. Now you are working on the C: drive. Ifyou need to go to a specific folder from thisdrive just type CD DIRECTORYNAME.The subdirectory names are separated by .For example when you need to accessthe System32 folder that is locatedon C:Windows just type cdwindowssystem32, and then press Enter.
  34. 34. When you need to go to one folder up, usethe cd.. command. Lets assume that youwant to go back to the Windows folder.Type cd.. and press Enter. You will noticethat your current directory has changedto C:Windows.
  35. 35. HOW TO ACCESS ACERTAIN DRIVE
  36. 36. To access another drive just type the driveletter followed by :. For example, wewanted to change the drive from C: to D:.We have typed d: and then pressed Enter.
  37. 37. To change the drive and the directory at thesame time, use the cd command followed bythe /dswitch. The parameter is used tochange the current drive to a specific folderfrom other partition. For example, now youare on the D: drive and you want to go backto the C: drive directly tothe Windows folder. Type cd/dC:Windows and press Enter, as you can seein the following image.
  38. 38. HOW TO VIEW THECONTENT OF A FOLDER
  39. 39. You can view the content of a folder byusing a simple command called DIR.
  40. 40. HOW TO CREATE AFOLDER USING THECOMMAND PROMPT
  41. 41. You can make a new directory usingthe MKDIR (Make Directory) command.The syntax of this command is MKDIRdirectory name.Lets say we need to create a new foldercalled 7tutorials_v1 that will be placed inthed:7tutorials folder. We will type mkdir7tutorials_v1 and then we press Enter.
  42. 42. HOW TO RENAME FILESAND FOLDERS
  43. 43. To test if it worked, we will use againthe dir command. The newly created folderappears in the list.
  44. 44. To rename files and folders you need touse the REN (Rename) command.For folders just type ren foldernamenewname.
  45. 45. ren 7tutorials_v1 7tutorials_final
  46. 46. COPY FILES ANDFOLDERS
  47. 47. The Copy command allows you to copy filesfrom one location to another. To use thiscommand you have to typecopy locationfilename.extensionlocationnewname.extension.
  48. 48. To copy a folder and its content from alocation to another we will usethe XCOPY command followed by the /s /i operators.
  49. 49. DELETE FILES ANDWORDS
  50. 50. The DEL (Delete) is used to delete fileswithin the directories youve created.To delete all the files from a directory youhave to type del directory name.
  51. 51. If we need to delete a single file we will usethe DEL command followed bythe filename.
  52. 52. The DEL command cannot be used to deletedirectories, therefore we will use anothercommand to remove any emptydirectory: RD (Remove Directory).
  53. 53. LAUNCH AN APPLICATIONFROM COMAMND
  54. 54. To run a program from the CommandPrompt, you need only to navigate to thedirectory that contains the executable andsimply type in the program name.
  55. 55. For example, if we want to launchPaint using Command Line, we have to goto C:WindowsSystem32 and there we willfind the executable called mspaint.exe. Letssee how this operation can be done, if we areon D:7tutorials. First off all we have tochange the working directory to theapplications folder by typing cd/dc:windowsSystem32. Then we justwrite mspaint.exe and press Enter. Bothcommands can be seen in the capture below.
  56. 56. HOW TO USE HELP INCOMMAND PROMPT
  57. 57. To access help in Command Prompt you justhave to type the help command and thenpress Enter. A list off all availablecommands will be displayed.
  58. 58. REPAIR MISSING ORCORRUPT FILES
  59. 59. NOTE: When a corrupt or missing systemfile prevents the operating system frombooting normally, you need to use theWindows 7 setup DVD or a System RepairDisc to start the Command Prompt and, fromthere the System File Checker (SFC). IfWindows 7 boots, but you get messagesabout missing system files, you will be ableto fix the problem by running the SystemFile Checker (SFC) in the Command Prompt
  60. 60. FIX MISSING ORCORRUPT FILES WHENTHE COMPUTER WON’TBOOT
  61. 61. In the Command Prompt window, usethe sfc command with two additionalparameters:/offbootdir and /offwindir.The parameter /offbootdir is used to specify theboot partition - the partition that contains the bootfiles needed for booting Windows 7.The /offwindir parameter is designed to specify thelocation of the Windows 7 directory.
  62. 62. FIX MISSING ORCORRUPTED FILES
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×