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]
PDF
Get into the FLOW with Extbase
TXT
Pop3ck sh
TXT
Bloqueador cmd-sh
PDF
ภาษา C
PPTX
London XQuery Meetup: Querying the World (Web Scraping)
KEY
Total World Domination with i18n (es)
Beginning web programming with PHP [PHP 101-02]
Get into the FLOW with Extbase
Pop3ck sh
Bloqueador cmd-sh
ภาษา C
London XQuery Meetup: Querying the World (Web Scraping)
Total World Domination with i18n (es)

What's hot (20)

TXT
Bouncingballs sh
ZIP
TerminalでTwitter
ZIP
全裸でワンライナー(仮)
PDF
Migrare da symfony 1 a Symfony2
PDF
Learning Perl 6
TXT
Cpsh sh
PDF
R57php 1231677414471772-2
PDF
Barcelona.pm Curs1211 sess01
PDF
Advanced modulinos trial
PDF
Text in search queries with examples in Perl 6
PDF
The Magic Of Tie
PPTX
Building Your First Widget
PDF
Learning Perl 6 (NPW 2007)
PDF
PDF
PythonでJWT生成からボット作成、投稿までやってみた
PDF
Perl Bag of Tricks - Baltimore Perl mongers
RTF
PDF
Advanced modulinos
TXT
Mkscript sh
PPT
Functional Pe(a)rls version 2
Bouncingballs sh
TerminalでTwitter
全裸でワンライナー(仮)
Migrare da symfony 1 a Symfony2
Learning Perl 6
Cpsh sh
R57php 1231677414471772-2
Barcelona.pm Curs1211 sess01
Advanced modulinos trial
Text in search queries with examples in Perl 6
The Magic Of Tie
Building Your First Widget
Learning Perl 6 (NPW 2007)
PythonでJWT生成からボット作成、投稿までやってみた
Perl Bag of Tricks - Baltimore Perl mongers
Advanced modulinos
Mkscript sh
Functional Pe(a)rls version 2
Ad

Similar to DOS (20)

DOC
20 C programs
PPTX
Embedded systems
PDF
Egypt cement
KEY
Device deployment
PDF
Bokers listings july 2011
PDF
Introduction of c_language
DOC
Course Breakup Plan- C
PDF
Six-Core AMD Opteron launched
PDF
Brasil Ross 2011
DOC
Lab sheet 1
PDF
Teaching the Principles of Computer Science to Primary-Aged Children
PDF
OSGi Provisioning With Apache ACE
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
PDF
Assembly
PPTX
Intro to c chapter cover 1 4
PDF
Magnitudes electricas
PDF
06uud1945amandemen
20 C programs
Embedded systems
Egypt cement
Device deployment
Bokers listings july 2011
Introduction of c_language
Course Breakup Plan- C
Six-Core AMD Opteron launched
Brasil Ross 2011
Lab sheet 1
Teaching the Principles of Computer Science to Primary-Aged Children
OSGi Provisioning With Apache ACE
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Assembly
Intro to c chapter cover 1 4
Magnitudes electricas
06uud1945amandemen
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation theory and applications.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Tartificialntelligence_presentation.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation theory and applications.pdf
Spectroscopy.pptx food analysis technology
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Tartificialntelligence_presentation.pptx
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Group 1 Presentation -Planning and Decision Making .pptx
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Assigned Numbers - 2025 - Bluetooth® Document
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf

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(); }