1.) Creating a file
c:\>copy con filename
type here the content of the file
e.g
c:\> copy con telephonedir
this is a text file.
it contains all telephone numbers.
Then press F6 to exit.
2.) Deleting a file
c:\>DEL a:\employee\myfile.bak
c:\WS>DEL assignment.doc
3.) Deleting a group of files
c:\>DEL *.jpg
4.) Displaying the file (using TYPE or PRINT)
c:\>TYPE assignment.doc
c:\>PRINT c:\WS\FINANCE.doc
5.) See list of files inside any directory
c:\>DIR c:\LOTUS
c:\>DIR
/P- Page wise sorted
/W- width wise
/AD- see sub-directories
c:\>DIR/P
6.) Copy files to floppy disk
c:\>copy c:\Lotus\123.exe
c:\>copy auto.bat A:
7.) Copying a group of files
c:\>copy A: A *.bak
8.) Changing file name & then copy
c:\>copy fast.dbf c:\quick.dbf
9.) Combining text files
c:\>copy News1.txt+News2.txt+News3.txt News.txt
10.) Copying and printing the file
c:\>copy A: office.Prn LPT1
11.) Moving the files
c:\>Move c:\surbhi\*.* c:\kapil
12.) Undelete file
c:\>undelete c:\ws\apple.doc
No comments:
Post a Comment