1 / 16

“DOS is dead, (long live the command line)“

“DOS is dead, (long live the command line)“. Source for most of this material: http://commandwindows.com. DOS is Dead. There is a common misconception that the command prompt in Windows XP is the same as DOS Even Microsoft itself isn't always careful about the distinction

isi
Télécharger la présentation

“DOS is dead, (long live the command line)“

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “DOS is dead, (long live the command line)“ • Source for most of this material: • http://commandwindows.com

  2. DOS is Dead • There is a common misconception that the command prompt in Windows XP is the same as DOS • Even Microsoft itself isn't always careful about the distinction • There are some superficial resemblances • However, all remnants of DOS are totally gone from the Windows XP kernel (there is a DOS emulator to run legacy apps)

  3. C: File System Hierarchy

  4. C: Absolute Path to here? C:\windows\system32\drivers

  5. C: Relative Path from Windows to Drivers? System32\drivers

  6. C: Relative path from system to drivers? ../system32/drivers

  7. Internal Commands

  8. Common Usage Command [arguments] Command [switches] [path to file or folder] Command [switches] [path] [path]

  9. Common Usage Examples: dir dir /w dir /w c:\windows dir /w /p ..

  10. Common Usage Examples: copy mydoc.doc c:\files move c:\docs\* c:\backups rename *.txt *.doc

  11. Symbols used with commands

  12. Extended Usage Examples: dir c:\windows > windowsDirectoryList.txt dir | more echo. | date Del *.* < y.txt

  13. Environmental Variables • %username% • %systemroot% • SET command • My Computer.Properties->Advanced.Environmental Variables

  14. C: Exercises • What’s the absolute path of Temp? • What’s the relative path from Temp to \ ? • What’s the relative path from Pagemaker to Drivers?

  15. C: Exercises • On a floppy, create this directory structure using the command line. • Create a .txt file in the pagemaker directory • Copy and rename that file to the elements directory using only one command • Write a batch script that will display the contents of A:\, and write those contents (the listing) to a file called C:\acontents.txt, and then attempt to format the floppy

  16. Other resources • http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true

More Related