0% found this document useful (0 votes)
17 views20 pages

CCP105

The document discusses DOS commands for printing files and managing file attributes. It begins with objectives for learning about the PRINT command and file attributes. It then recaps the DISKCOPY and DISKCOMP commands before detailing the syntax of the PRINT command to transfer file contents to a printer. It lists and explains the read-only, hidden, archive, and system attributes that can be set or viewed for files using the ATTRIB command. Examples are provided for ATTRIB, PRINT, and assigning read-only attributes.

Uploaded by

api-3849444
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views20 pages

CCP105

The document discusses DOS commands for printing files and managing file attributes. It begins with objectives for learning about the PRINT command and file attributes. It then recaps the DISKCOPY and DISKCOMP commands before detailing the syntax of the PRINT command to transfer file contents to a printer. It lists and explains the read-only, hidden, archive, and system attributes that can be set or viewed for files using the ATTRIB command. Examples are provided for ATTRIB, PRINT, and assigning read-only attributes.

Uploaded by

api-3849444
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
Name : M.Bhagya Lakshmi,
Designation : Lecturer in CCP,
Institution : GMR Polytechnic, Gajwel
Branch : DCCP
Year/semester : First Year
Subject name : Computer Fundamentals.
Subject Code : CCP-105
Major Topic : DOS Operating System
Duration : 50 min.
Sub –Topic : PRINT , FILE.
Teaching Aids : PPT

CCP105.30 1
OBJECTIVES:
On completion of this period, you would be able to know
and use

• PRINT COMMAND
• FILE ATTIBUTES

CCP105.30 2
RECAP

• DISKCOPY

• Copies the contents of the disk from one to another

• DISKCOMP

• Compares the contents of two disks

CCP105.30 3
PRINT COMMAND

• Transfers the contents of a file to the printer

CCP105.30 4
The Syntax is

PRINT [d:] [path] file. ext

• d: path The drive and directory containing the file to


be printed
• file.ext Name of the file to be printed.

• Example:
A > PRINT INT.FOR

CCP105.30 5
FILE Attributes:

• Every file/folder has certain qualities associated with it.

• These qualities or characteristics are called file


attributes.

CCP105.30 6
The attributes of a file are given below

Attribute Explanation

• Read-only you can only read this file


or folder, but cannot
change or delete it.

• Hidden file (directory) does not


usually appear in a directory list
(or windows Explorer window).

CCP105.30 7
• Archive It is used with the backup, xcopy and
other commands to control back up
process

• System It designates a file as a system files.


File (directories) with the system attribute
are not shown in directory listings.

CCP105.30 8
ATTRIB command:

• Used to show attributes of a file.

• Used to set or change the attributes

CCP105.30 9
The general form of attrib command

Attrib [+r/ -r] [+a/ -a] [+s/ -s] [+h/ -h] [drive:] [path] [file name] [/s]

CCP105.30 10
• [drive:] [path] Specifies the location and
nameof the file or set of files you
want to process.

• +r Changes specified files to read only


which means the files cannot be
over written or erased.

• -r Changes specified files to read/write


which means, the file may be over
written or erased.

• +a Sets file settings (s) to archived .

• -a Clears the archive file attribute.

CCP105.30 11
• +s Sets the file as a system file.

• -s Clears the system file attribute.

• +h Changes specified files to hidden, which


means the files will not be visible to most
DOS operations

• -h Makes hidden files visible again.

• /s Processes files in the current directory


and all of its subdirectories.

CCP105.30 12
Example

To display all attributes of files on the current directory,


type the following command.

A > attrib

CCP105.30 13
Examples:

• To display attributes of a file named


ADDRESS.TXT in the current drive.
A> attrib ADDRESS.TXT

• To assign the read-only attribute to the file


ADDRESS.TXT.
A>attrib +r ADDRESS.TXT

• To remove the read-only attribute.


A>attrib –r ADDRESS.TXT

CCP105.30 14
Summary

• PRINT COMMAND
• Used to transfer the file contents to the printer
• FILE ATTIBUTES
• Read-only
• Hidden
• Archive
• System

CCP105.30 15
QUIZ

CCP105.30 16
The attributes of a file are
b) Read only
c) Hidden
d) Archive
e) System
f) all

CCP105.30 17
Frequently asked questions

Explain the following DOS external commands.


a)Print
b)Attrib

CCP105.30 18
Assignment

1. Explain the attributes of a file and show how you can


change them.

CCP105.30 19
THANK YOU

CCP105.30 20

You might also like