SlideShare a Scribd company logo
!                     "#$
% # &                             $       !           '                               $
                $                !        $
                         (   )        )

"      *+,- %                                                 "#$
                                                      %                   "           % "#$.
/ 0/                01

!                            2                    %                 %             3
!$                  0                        4%                           $           !
%                                         *5 %
                                                                    1 %
                                      #                                       %
                                              !           "
                1            $

* !' "3   !     !                                                                 $

Syntax:
CHDIR [drive:][path]
CHDIR[..]
CD [drive:][path]
CD[..]

..     Specifies that you want to change to the parent directory.

Type CD drive: to display the current directory in the specified
drive.
Type CD without parameters to display the current drive and directory.

2)DIR                                     %
6 !        7




8     09




5) EDIT allows a user to view, create, or modify their computer files. The edit command is an
external command.

Syntax:
You can also use the below command to create a file.
 ou

COPY CON <name of file>

Once you have entered the above command this will create the file with the name specified.
Once you have typed all the lines you wish to be in the file, press and hold CTRL + Z. This
should enter ^Z, once on the screen, press enter and one file should be copied.

6) MOVE allows you to move files or directories from one folder to another, or from one drive
   MOVE
to another.

Syntax:




7) REN used to rename files and directories from the original name to a new name.

Syntax:
8) CLS is a command that allows a user to clear the complete contents of the screen and leave
only a prompt.

9) DELTREE deletes a directory and all the subdirectories and files in it.

Syntax:




10) ACALC calculates the value of a mathematical expression.
          calculates

Syntax:




11) : 3"#                               %




*; 0<" =          ! $$:> ! $
*6 0!'




14) MKDIR or MD creates a directory.
                creates

Syntax:




15) SORT sorts input and writes results to the screen, a file, or another device.
          orts

Syntax:




16) TIME displays or sets the system time.
          isplays

Syntax:




17) TREE graphically displays the directory structure of a drive or path.
          raphically

Syntax:
18) DATE displays or sets the system date.
          isplays

Syntax:




19) UNDELETE Restores files previously deleted with the DEL command.
  )

Syntax:
  ntax:




20) RMDIR or RD removes (deletes) a directory.
                 emoves

Syntax:




21) TYPE displays the contents of a text file.
          isplays

Syntax:

TYPE [drive:][path]filename

22) PRINT prints a text file while you are using other DOS commands.
           rints
Syntax:




23) MORE displays output one screen at a time.
          isplays

Syntax:




24) FIND Searches for a text string in a file or files.

Syntax:
#include<conio.h>                  #include<stdio.h>
#include<stdio.h>
void main()                        #include<conio.h>
{
 int num;                          void main()
 int rem,temp,rev=0;clrscr();
 printf("Enter an integer :n");   {
 scanf("%d",&num);
 temp=num;                         int a=0,b=1,c=0,i=1;
 while(temp!=0)
 {                                 int number;
 rem=temp%10;
 rev=rev*10+rem;                   clrscr();
 temp=temp/10;
 }                                 printf("Enter the size of a fibonacci series:");
 temp=rev;
 while(temp!=0)                    scanf("%d",&number);
 {
 rem=temp%10;                      printf("0t1t");
 switch(rem)
 {                                 while(i++<=(number-2))
 case 0:
 printf(" ZERO"); break;           {
 case 1:
 printf(" ONE"); break;            c=a+b;
 case 2:
 printf(" TWO"); break;            printf("%dt",c);
 case 3:
 printf(" THREE"); break;          a=b;
 case 4:
 printf(" FOUR"); break;           b=c;
 case 5:
 printf(" FIVE"); break;           }
 case 6:
 printf(" SIX"); break;            getch();
 case 7:
 printf(" SEVEN"); break;          }
 case 8:
 printf(" EIGHT"); break;
 case 9:
 printf(" NINE"); break;
 }
 temp=temp/10;
 }
getch();
}
DOS

More Related Content

PDF
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
 
PDF
Get into the FLOW with Extbase
Jochen Rau
 
TXT
Pop3ck sh
Ben Pope
 
TXT
Bloqueador cmd-sh
msbertoldi
 
PDF
ภาษา C
Noppanon YourJust'one
 
PPTX
London XQuery Meetup: Querying the World (Web Scraping)
Dennis Knochenwefel
 
KEY
Total World Domination with i18n (es)
Zé Fontainhas
 
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
 
Get into the FLOW with Extbase
Jochen Rau
 
Pop3ck sh
Ben Pope
 
Bloqueador cmd-sh
msbertoldi
 
ภาษา C
Noppanon YourJust'one
 
London XQuery Meetup: Querying the World (Web Scraping)
Dennis Knochenwefel
 
Total World Domination with i18n (es)
Zé Fontainhas
 

What's hot (20)

TXT
Bouncingballs sh
Ben Pope
 
ZIP
TerminalでTwitter
Yoshihiro Sugi
 
ZIP
全裸でワンライナー(仮)
Yoshihiro Sugi
 
PDF
Migrare da symfony 1 a Symfony2
Massimiliano Arione
 
PDF
Learning Perl 6
brian d foy
 
TXT
Cpsh sh
Ben Pope
 
PDF
R57php 1231677414471772-2
ady36
 
PDF
Barcelona.pm Curs1211 sess01
Javier Arturo Rodríguez
 
PDF
Advanced modulinos trial
brian d foy
 
PDF
Text in search queries with examples in Perl 6
Andrew Shitov
 
PDF
The Magic Of Tie
brian d foy
 
PPTX
Building Your First Widget
Chris Wilcoxson
 
PDF
Learning Perl 6 (NPW 2007)
brian d foy
 
PDF
wget.pl
Yasuhiro Onishi
 
PDF
PythonでJWT生成からボット作成、投稿までやってみた
itoxdev
 
PDF
Perl Bag of Tricks - Baltimore Perl mongers
brian d foy
 
RTF
distill
Thomas Knudstrup
 
PDF
Advanced modulinos
brian d foy
 
TXT
Mkscript sh
Ben Pope
 
PPT
Functional Pe(a)rls version 2
osfameron
 
Bouncingballs sh
Ben Pope
 
TerminalでTwitter
Yoshihiro Sugi
 
全裸でワンライナー(仮)
Yoshihiro Sugi
 
Migrare da symfony 1 a Symfony2
Massimiliano Arione
 
Learning Perl 6
brian d foy
 
Cpsh sh
Ben Pope
 
R57php 1231677414471772-2
ady36
 
Barcelona.pm Curs1211 sess01
Javier Arturo Rodríguez
 
Advanced modulinos trial
brian d foy
 
Text in search queries with examples in Perl 6
Andrew Shitov
 
The Magic Of Tie
brian d foy
 
Building Your First Widget
Chris Wilcoxson
 
Learning Perl 6 (NPW 2007)
brian d foy
 
PythonでJWT生成からボット作成、投稿までやってみた
itoxdev
 
Perl Bag of Tricks - Baltimore Perl mongers
brian d foy
 
Advanced modulinos
brian d foy
 
Mkscript sh
Ben Pope
 
Functional Pe(a)rls version 2
osfameron
 
Ad

Similar to DOS (20)

DOC
20 C programs
navjoth
 
PPTX
Embedded systems
Mitul Tank
 
PDF
Egypt cement
laxmanrsingh
 
KEY
Device deployment
Angelo van der Sijpt
 
PDF
Bokers listings july 2011
CommercialOfficeLeasing.com
 
PDF
Introduction of c_language
SINGH PROJECTS
 
DOC
Course Breakup Plan- C
swatisinghal
 
PDF
Six-Core AMD Opteron launched
YING CHIEH YU
 
PDF
Brasil Ross 2011
Eric Van Hensbergen
 
DOC
Lab sheet 1
alish sha
 
PDF
Teaching the Principles of Computer Science to Primary-Aged Children
Barry O'Sullivan
 
PDF
OSGi Provisioning With Apache ACE
mfrancis
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
PDF
Assembly
nick333y
 
PPTX
Intro to c chapter cover 1 4
Hazwan Arif
 
PDF
Magnitudes electricas
omar garcia
 
PDF
06uud1945amandemen
SDN 4 SIDOREJO
 
20 C programs
navjoth
 
Embedded systems
Mitul Tank
 
Egypt cement
laxmanrsingh
 
Device deployment
Angelo van der Sijpt
 
Bokers listings july 2011
CommercialOfficeLeasing.com
 
Introduction of c_language
SINGH PROJECTS
 
Course Breakup Plan- C
swatisinghal
 
Six-Core AMD Opteron launched
YING CHIEH YU
 
Brasil Ross 2011
Eric Van Hensbergen
 
Lab sheet 1
alish sha
 
Teaching the Principles of Computer Science to Primary-Aged Children
Barry O'Sullivan
 
OSGi Provisioning With Apache ACE
mfrancis
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
Assembly
nick333y
 
Intro to c chapter cover 1 4
Hazwan Arif
 
Magnitudes electricas
omar garcia
 
06uud1945amandemen
SDN 4 SIDOREJO
 
Ad

Recently uploaded (20)

PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Doc9.....................................
SofiaCollazos
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 

DOS

  • 1. ! "#$ % # & $ ! ' $ $ ! $ ( ) ) " *+,- % "#$ % " % "#$. / 0/ 01 ! 2 % % 3 !$ 0 4% $ ! % *5 % 1 % # % ! " 1 $ * !' "3 ! ! $ Syntax: CHDIR [drive:][path] CHDIR[..] CD [drive:][path] CD[..] .. Specifies that you want to change to the parent directory. Type CD drive: to display the current directory in the specified drive. Type CD without parameters to display the current drive and directory. 2)DIR %
  • 2. 6 ! 7 8 09 5) EDIT allows a user to view, create, or modify their computer files. The edit command is an external command. Syntax:
  • 3. You can also use the below command to create a file. ou COPY CON <name of file> Once you have entered the above command this will create the file with the name specified. Once you have typed all the lines you wish to be in the file, press and hold CTRL + Z. This should enter ^Z, once on the screen, press enter and one file should be copied. 6) MOVE allows you to move files or directories from one folder to another, or from one drive MOVE to another. Syntax: 7) REN used to rename files and directories from the original name to a new name. Syntax:
  • 4. 8) CLS is a command that allows a user to clear the complete contents of the screen and leave only a prompt. 9) DELTREE deletes a directory and all the subdirectories and files in it. Syntax: 10) ACALC calculates the value of a mathematical expression. calculates Syntax: 11) : 3"# % *; 0<" = ! $$:> ! $
  • 5. *6 0!' 14) MKDIR or MD creates a directory. creates Syntax: 15) SORT sorts input and writes results to the screen, a file, or another device. orts Syntax: 16) TIME displays or sets the system time. isplays Syntax: 17) TREE graphically displays the directory structure of a drive or path. raphically Syntax:
  • 6. 18) DATE displays or sets the system date. isplays Syntax: 19) UNDELETE Restores files previously deleted with the DEL command. ) Syntax: ntax: 20) RMDIR or RD removes (deletes) a directory. emoves Syntax: 21) TYPE displays the contents of a text file. isplays Syntax: TYPE [drive:][path]filename 22) PRINT prints a text file while you are using other DOS commands. rints
  • 7. Syntax: 23) MORE displays output one screen at a time. isplays Syntax: 24) FIND Searches for a text string in a file or files. Syntax:
  • 8. #include<conio.h> #include<stdio.h> #include<stdio.h> void main() #include<conio.h> { int num; void main() int rem,temp,rev=0;clrscr(); printf("Enter an integer :n"); { scanf("%d",&num); temp=num; int a=0,b=1,c=0,i=1; while(temp!=0) { int number; rem=temp%10; rev=rev*10+rem; clrscr(); temp=temp/10; } printf("Enter the size of a fibonacci series:"); temp=rev; while(temp!=0) scanf("%d",&number); { rem=temp%10; printf("0t1t"); switch(rem) { while(i++<=(number-2)) case 0: printf(" ZERO"); break; { case 1: printf(" ONE"); break; c=a+b; case 2: printf(" TWO"); break; printf("%dt",c); case 3: printf(" THREE"); break; a=b; case 4: printf(" FOUR"); break; b=c; case 5: printf(" FIVE"); break; } case 6: printf(" SIX"); break; getch(); case 7: printf(" SEVEN"); break; } case 8: printf(" EIGHT"); break; case 9: printf(" NINE"); break; } temp=temp/10; } getch(); }