SlideShare a Scribd company logo
CTEC1863 MS-DOS Crash Course Page 1 of 3
MS-DOS CRASH COURSE
(Adapted from "Windows Annoyances" by David A. Karp, O'Reilly & Associates,
1997.)
At least one lab in this course requires that you type commands into a DOS window. If you don't quite have a
grasp on this concept, here's a crash course on MS-DOS (short for Microsoft Disk Operating System). DOS has been
included with PCs since the original IBM 5150 PC in the early 1980s, and even the newest PCs still use it to some
extent. DOS was the PC operating system used before Microsoft Windows became the standard and still has some
use today. All versions of Microsoft Windows from 1.0 to 3.11 relied on DOS. Windows was thought of only as an
extension, as one needed to load DOS before starting Windows. Windows 95, 98 and ME were still based
somewhat on MS-DOS for compatibility with the vast majority of available software and Microsoft has made
Windows NT, 2000, XP, 2003, 2008, Vista, and 7 completely independent of MS-DOS, but still makes available the
command prompt for those who need the functionality.
Rather than unloading Windows to access the command prompt, you simply load another command prompt while
remaining in Windows. This is often referred to as a “DOS box” or “DOS window.” If you don't have a Command
Prompt item in your Start Menu, you can use the Start Menu's Run command or search box to execute cmd.exe
(or command.com on older versions of Windows).
You'll see a window that looks like the one shown below in Fig. 3. The cursor indicates the command line (where
commands are typed), and the prompt usually shows the current working directory (here, C:Userscampus).
To run programs in a DOS box, type the name of the program at the command line (also called the C prompt
because it usually looks like C:>) and press Enter. You should know the following basic DOS commands. The
commands and the parameters (the information you supply to the command) can be in either uppercase or
lowercase (or both.) If there is more than one parameter, each is separated by a space.
Figure 2. Windows 7 Start Menu
Figure 1. Type "cmd" in Windows
7 search box.
CTEC1863 MS-DOS Crash Course Page 2 of 3
Figure 3. Typical Windows 7 Command Prompt Window
CD foldername
Changes the working directory to foldername. If the prompt indicates that you are in C:Windows, and
you want to run a DOS program located in C:Files, type CD C:FILES. Typing CD by itself will tell
you the current working directory, i.e., where you are at the moment, although the prompt shows that
already. Use CD /D drive:foldername to also change the current drive.
DIR
Displays a listing of all the files and directories in the current working directory. Use CD to
change to a different directory. Type DIR C:FILES to display the contents of C:Files
without using the CD command. Type DIR /? for additional options.
ATTRIB filename
Changes the attributes (also called properties) of a file. In Explorer, you can right-click on a file or group
of files to change the attributes (R for read only, S for system, A for archive, and H for hidden). ATTRIB is
the DOS counterpart to this functionality. In addition, ATTRIB lets you change the S attribute -- something
Explorer doesn't let you do. Here are some examples:
o ATTRIB +H MYFILE.TXT -- This turns on the "H" parameter for the file myfile.txt.
o ATTRIB -R "ANOTHER FILE.DOC" -- This turns off the "R" parameter for the file another
file.doc (note the quotes used because of the space in the filename).
o Type ATTRIB /? for additional options.
COPY filename destination
Copies a file to another directory or drive, specified as destination. This is the same as dragging and
dropping files in Explorer, except that the keyboard is used instead of the mouse. For example, to copy
the file myfile.txt (located in the current working directory) to your USB flash drive, type COPY
MYFILE.TXT E:.
XCOPY source destination
Copies a file or a whole directory to another directory or drive, specified as destination. This is the same
as dragging and dropping folders in Explorer. XCOPY is much more flexible and powerful than COPY. For
example, to copy the directory files and all its subdirectories (even empty ones) to your network drive,
type XCOPY FILES W:FilesBackup /E /I. Type XCOPY /? for additional options.
CTEC1863 MS-DOS Crash Course Page 3 of 3
MOVE filename destination
The same as COPY, except that the file is moved instead of copied.
REN oldfilename newfilename
Renames a file to newfilename. This is especially useful, as you can use the REN command to rename
more that one file at once -- something Explorer doesn't let you do. For example, to rename myfile.txt to
herfile.txt, type REN MyFile.txt HerFile.txt. To change the extensions of all the files in the
current working directory from .TXT to .DOC, type REN *.TXT *.DOC.
DEL filename
Deletes a file. For example, to delete the file myfile.txt, type DEL MYFILE.TXT. This is not the same as
deleting a file (with the mouse) in Windows, as the file will not be stored in the Recycle Bin. The Windows
equivalent is to hold down the Shift key while deleting a file with the mouse.
EXIT
Closes the command prompt window. In most situations, you can just click the close button at the
upper right corner of the window, but the EXIT command is safer, because it means that no other DOS
command is currently running.

More Related Content

What's hot

Internal commands.29to30
Internal commands.29to30Internal commands.29to30
Internal commands.29to30
myrajendra
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
Indika Rathninda
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab ppt
Ammar_n
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
suraj pandey
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
Ahmed Hesham
 
Ms DOS
Ms DOSMs DOS
Ms DOS
Gunjan Singh
 
168054408 cc1
168054408 cc1168054408 cc1
168054408 cc1
homeworkping8
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
parag dhok
 
ppt on cmd cammand
ppt on cmd cammandppt on cmd cammand
ppt on cmd cammand
SahilChauhan85
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
zatax
 
MS-DOS
MS-DOSMS-DOS
Dos
DosDos
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commands
Abdullah Khosa
 
A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
proser tech
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
Raza Jaan
 
help with Linux/Unix starting
help with Linux/Unix startinghelp with Linux/Unix starting
help with Linux/Unix starting
dummy
 
CMD Command
CMD CommandCMD Command
CMD Command
Chandra Pr. Singh
 
Os lab manual
Os lab manualOs lab manual
Os lab manual
Neelamani Samal
 

What's hot (19)

Internal commands.29to30
Internal commands.29to30Internal commands.29to30
Internal commands.29to30
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab ppt
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
Ms DOS
Ms DOSMs DOS
Ms DOS
 
168054408 cc1
168054408 cc1168054408 cc1
168054408 cc1
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
 
ppt on cmd cammand
ppt on cmd cammandppt on cmd cammand
ppt on cmd cammand
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 
MS-DOS
MS-DOSMS-DOS
MS-DOS
 
Dos
DosDos
Dos
 
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commands
 
A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
help with Linux/Unix starting
help with Linux/Unix startinghelp with Linux/Unix starting
help with Linux/Unix starting
 
CMD Command
CMD CommandCMD Command
CMD Command
 
Os lab manual
Os lab manualOs lab manual
Os lab manual
 

Viewers also liked

Alfresco Share - Recycle Bin Ideas
Alfresco Share - Recycle Bin IdeasAlfresco Share - Recycle Bin Ideas
Alfresco Share - Recycle Bin Ideas
AlfrescoUE
 
Android Bluetooth Hacking Java Day2010 Eng
Android Bluetooth Hacking Java Day2010 EngAndroid Bluetooth Hacking Java Day2010 Eng
Android Bluetooth Hacking Java Day2010 Eng
Emanuele Di Saverio
 
theday, windows hacking with commandline
theday, windows hacking with commandlinetheday, windows hacking with commandline
theday, windows hacking with commandline
idsecconf
 
Hacking Java - Enhancing Java Code at Build or Runtime
Hacking Java - Enhancing Java Code at Build or RuntimeHacking Java - Enhancing Java Code at Build or Runtime
Hacking Java - Enhancing Java Code at Build or Runtime
Sean P. Floyd
 
Windows Hacking
Windows HackingWindows Hacking
Windows Hacking
Mayur Sutariya
 
Hacking Windows IPC
Hacking Windows IPCHacking Windows IPC
Hacking Windows IPC
gueste041bc
 
Hacking Java @JavaLand2016
Hacking Java @JavaLand2016Hacking Java @JavaLand2016
Hacking Java @JavaLand2016
Sean P. Floyd
 
Cheatsheet of msdos
Cheatsheet of msdosCheatsheet of msdos
Cheatsheet of msdos
Shuvradeb Barman Srijon
 
Source Code Control System (SCCS)
Source Code Control System (SCCS)Source Code Control System (SCCS)
Source Code Control System (SCCS)
Saurabh Kumar
 
Windows XP
Windows XPWindows XP
Windows XP
sergun44
 
Computer Literacy Lesson 3
Computer Literacy Lesson 3Computer Literacy Lesson 3
Computer Literacy Lesson 3
cpashke
 
Curso Virtual de Hacking Windows
Curso Virtual de Hacking WindowsCurso Virtual de Hacking Windows
Curso Virtual de Hacking Windows
Alonso Caballero
 

Viewers also liked (12)

Alfresco Share - Recycle Bin Ideas
Alfresco Share - Recycle Bin IdeasAlfresco Share - Recycle Bin Ideas
Alfresco Share - Recycle Bin Ideas
 
Android Bluetooth Hacking Java Day2010 Eng
Android Bluetooth Hacking Java Day2010 EngAndroid Bluetooth Hacking Java Day2010 Eng
Android Bluetooth Hacking Java Day2010 Eng
 
theday, windows hacking with commandline
theday, windows hacking with commandlinetheday, windows hacking with commandline
theday, windows hacking with commandline
 
Hacking Java - Enhancing Java Code at Build or Runtime
Hacking Java - Enhancing Java Code at Build or RuntimeHacking Java - Enhancing Java Code at Build or Runtime
Hacking Java - Enhancing Java Code at Build or Runtime
 
Windows Hacking
Windows HackingWindows Hacking
Windows Hacking
 
Hacking Windows IPC
Hacking Windows IPCHacking Windows IPC
Hacking Windows IPC
 
Hacking Java @JavaLand2016
Hacking Java @JavaLand2016Hacking Java @JavaLand2016
Hacking Java @JavaLand2016
 
Cheatsheet of msdos
Cheatsheet of msdosCheatsheet of msdos
Cheatsheet of msdos
 
Source Code Control System (SCCS)
Source Code Control System (SCCS)Source Code Control System (SCCS)
Source Code Control System (SCCS)
 
Windows XP
Windows XPWindows XP
Windows XP
 
Computer Literacy Lesson 3
Computer Literacy Lesson 3Computer Literacy Lesson 3
Computer Literacy Lesson 3
 
Curso Virtual de Hacking Windows
Curso Virtual de Hacking WindowsCurso Virtual de Hacking Windows
Curso Virtual de Hacking Windows
 

Similar to Msdos crash course

Dos 16
Dos 16Dos 16
Lec05
Lec05Lec05
What is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdfWhat is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdf
RohitRoshanBengROHIT
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
susir
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
ssuser5ab112
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
A.S.M Shmimul Islam.
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
A.S.M Shmimul Islam.
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
ssuser536c36
 
disk-operating-system.ppt
disk-operating-system.pptdisk-operating-system.ppt
disk-operating-system.ppt
RatishKumar33
 
The MS-DOS File System.pptx
The MS-DOS File System.pptxThe MS-DOS File System.pptx
The MS-DOS File System.pptx
emsResulzade1
 
Ms dos
Ms dosMs dos
Ms dos
NICT
 
Command
CommandCommand
Command
somoloye
 
L1 msdos primer
L1 msdos primerL1 msdos primer
L1 msdos primer
A.S.M Shmimul Islam.
 
10 MS DOS and Its Commands.pptx .related to
10 MS DOS  and Its Commands.pptx .related to10 MS DOS  and Its Commands.pptx .related to
10 MS DOS and Its Commands.pptx .related to
perweeng31
 
Ms dos full explanation
Ms dos full explanation Ms dos full explanation
Ms dos full explanation
ParmvirSingh11
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdf
shubhangisonawane6
 
Basic dos commands
Basic dos commandsBasic dos commands
Basic dos commands
Kirti Garg
 
Basic dos commands
Basic dos commandsBasic dos commands
Basic dos commands
Kirti Garg
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
DrIrfanulHaqAkhoon
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASIC
maccarthy104
 

Similar to Msdos crash course (20)

Dos 16
Dos 16Dos 16
Dos 16
 
Lec05
Lec05Lec05
Lec05
 
What is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdfWhat is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdf
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
 
disk-operating-system.ppt
disk-operating-system.pptdisk-operating-system.ppt
disk-operating-system.ppt
 
The MS-DOS File System.pptx
The MS-DOS File System.pptxThe MS-DOS File System.pptx
The MS-DOS File System.pptx
 
Ms dos
Ms dosMs dos
Ms dos
 
Command
CommandCommand
Command
 
L1 msdos primer
L1 msdos primerL1 msdos primer
L1 msdos primer
 
10 MS DOS and Its Commands.pptx .related to
10 MS DOS  and Its Commands.pptx .related to10 MS DOS  and Its Commands.pptx .related to
10 MS DOS and Its Commands.pptx .related to
 
Ms dos full explanation
Ms dos full explanation Ms dos full explanation
Ms dos full explanation
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdf
 
Basic dos commands
Basic dos commandsBasic dos commands
Basic dos commands
 
Basic dos commands
Basic dos commandsBasic dos commands
Basic dos commands
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASIC
 

Recently uploaded

Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 

Recently uploaded (20)

Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 

Msdos crash course

  • 1. CTEC1863 MS-DOS Crash Course Page 1 of 3 MS-DOS CRASH COURSE (Adapted from "Windows Annoyances" by David A. Karp, O'Reilly & Associates, 1997.) At least one lab in this course requires that you type commands into a DOS window. If you don't quite have a grasp on this concept, here's a crash course on MS-DOS (short for Microsoft Disk Operating System). DOS has been included with PCs since the original IBM 5150 PC in the early 1980s, and even the newest PCs still use it to some extent. DOS was the PC operating system used before Microsoft Windows became the standard and still has some use today. All versions of Microsoft Windows from 1.0 to 3.11 relied on DOS. Windows was thought of only as an extension, as one needed to load DOS before starting Windows. Windows 95, 98 and ME were still based somewhat on MS-DOS for compatibility with the vast majority of available software and Microsoft has made Windows NT, 2000, XP, 2003, 2008, Vista, and 7 completely independent of MS-DOS, but still makes available the command prompt for those who need the functionality. Rather than unloading Windows to access the command prompt, you simply load another command prompt while remaining in Windows. This is often referred to as a “DOS box” or “DOS window.” If you don't have a Command Prompt item in your Start Menu, you can use the Start Menu's Run command or search box to execute cmd.exe (or command.com on older versions of Windows). You'll see a window that looks like the one shown below in Fig. 3. The cursor indicates the command line (where commands are typed), and the prompt usually shows the current working directory (here, C:Userscampus). To run programs in a DOS box, type the name of the program at the command line (also called the C prompt because it usually looks like C:>) and press Enter. You should know the following basic DOS commands. The commands and the parameters (the information you supply to the command) can be in either uppercase or lowercase (or both.) If there is more than one parameter, each is separated by a space. Figure 2. Windows 7 Start Menu Figure 1. Type "cmd" in Windows 7 search box.
  • 2. CTEC1863 MS-DOS Crash Course Page 2 of 3 Figure 3. Typical Windows 7 Command Prompt Window CD foldername Changes the working directory to foldername. If the prompt indicates that you are in C:Windows, and you want to run a DOS program located in C:Files, type CD C:FILES. Typing CD by itself will tell you the current working directory, i.e., where you are at the moment, although the prompt shows that already. Use CD /D drive:foldername to also change the current drive. DIR Displays a listing of all the files and directories in the current working directory. Use CD to change to a different directory. Type DIR C:FILES to display the contents of C:Files without using the CD command. Type DIR /? for additional options. ATTRIB filename Changes the attributes (also called properties) of a file. In Explorer, you can right-click on a file or group of files to change the attributes (R for read only, S for system, A for archive, and H for hidden). ATTRIB is the DOS counterpart to this functionality. In addition, ATTRIB lets you change the S attribute -- something Explorer doesn't let you do. Here are some examples: o ATTRIB +H MYFILE.TXT -- This turns on the "H" parameter for the file myfile.txt. o ATTRIB -R "ANOTHER FILE.DOC" -- This turns off the "R" parameter for the file another file.doc (note the quotes used because of the space in the filename). o Type ATTRIB /? for additional options. COPY filename destination Copies a file to another directory or drive, specified as destination. This is the same as dragging and dropping files in Explorer, except that the keyboard is used instead of the mouse. For example, to copy the file myfile.txt (located in the current working directory) to your USB flash drive, type COPY MYFILE.TXT E:. XCOPY source destination Copies a file or a whole directory to another directory or drive, specified as destination. This is the same as dragging and dropping folders in Explorer. XCOPY is much more flexible and powerful than COPY. For example, to copy the directory files and all its subdirectories (even empty ones) to your network drive, type XCOPY FILES W:FilesBackup /E /I. Type XCOPY /? for additional options.
  • 3. CTEC1863 MS-DOS Crash Course Page 3 of 3 MOVE filename destination The same as COPY, except that the file is moved instead of copied. REN oldfilename newfilename Renames a file to newfilename. This is especially useful, as you can use the REN command to rename more that one file at once -- something Explorer doesn't let you do. For example, to rename myfile.txt to herfile.txt, type REN MyFile.txt HerFile.txt. To change the extensions of all the files in the current working directory from .TXT to .DOC, type REN *.TXT *.DOC. DEL filename Deletes a file. For example, to delete the file myfile.txt, type DEL MYFILE.TXT. This is not the same as deleting a file (with the mouse) in Windows, as the file will not be stored in the Recycle Bin. The Windows equivalent is to hold down the Shift key while deleting a file with the mouse. EXIT Closes the command prompt window. In most situations, you can just click the close button at the upper right corner of the window, but the EXIT command is safer, because it means that no other DOS command is currently running.