際際滷

際際滷Share 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

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