DOS

251 views

Published on

SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH SATYAJIT DASH

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
251
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

DOS

  1. 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 specifieddrive.Type CD without parameters to display the current drive and directory.2)DIR %
  2. 2. 6 ! 78 095) EDIT allows a user to view, create, or modify their computer files. The edit command is anexternal command.Syntax:
  3. 3. You can also use the below command to create a file. ouCOPY 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. Thisshould 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 MOVEto another.Syntax:7) REN used to rename files and directories from the original name to a new name.Syntax:
  4. 4. 8) CLS is a command that allows a user to clear the complete contents of the screen and leaveonly 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. calculatesSyntax:11) : 3"# %*; 0<" = ! $$:> ! $
  5. 5. *6 0!14) MKDIR or MD creates a directory. createsSyntax:15) SORT sorts input and writes results to the screen, a file, or another device. ortsSyntax:16) TIME displays or sets the system time. isplaysSyntax:17) TREE graphically displays the directory structure of a drive or path. raphicallySyntax:
  6. 6. 18) DATE displays or sets the system date. isplaysSyntax:19) UNDELETE Restores files previously deleted with the DEL command. )Syntax: ntax:20) RMDIR or RD removes (deletes) a directory. emovesSyntax:21) TYPE displays the contents of a text file. isplaysSyntax:TYPE [drive:][path]filename22) PRINT prints a text file while you are using other DOS commands. rints
  7. 7. Syntax:23) MORE displays output one screen at a time. isplaysSyntax:24) FIND Searches for a text string in a file or files.Syntax:
  8. 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();}

×