Vinluan Jericho Lab Assignment

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

LAB ASSIGNMENT

Assignment-1

 Write the syntax and one line description of the following Internal commands:
a) COPY
Syntax: C:\> COPY <Source filename> <Target file name>

b) DATE
Syntax: C:\> DATE

c) DEL
Syntax: C:\> DEL <Filename>

d) DIR
Syntax: C:\> DIR [/switches]

e) ECHO
Syntax: ECHO [ON | OFF]
ECHO [message]

f) MD
Syntax: C:\> MD <Dirname>

g) PATH
Syntax: C:\> PATH

h) PROMPT
Syntax: C:\>PROMPT

i) RD
Syntax: C:\> RD <Directory name>

j) REN
Syntax: C:\> REN <Source filename> <Target filename>.

k) TIME
Syntax: C:\> TIME
l) VER
Syntax: C:\> VER press enter

m) COPY CON
Syntax: C:\> COPY CON <Filename>

n) VOL
Syntax: C:\> VOL

Assignment-2

 Write the syntax and one line description of the following External commands:
a) ATTRIB
Syntax: C:\> ATTRIB [± r] [± a] [± h] [± s]

b) CHKDSK
Syntax: C:\> CHKDSK

c) DEFRAG
Syntax: DEFRAG [d:] [/F][/S[:]order] [/B][/skiphigh [/LCD|/BW|/GO] [/H]
DEFRAG [d:] [/V][/B][/skiphigh] [/LCD]|/BW|/GO] [/H]

d) DISKCOMP
Syntax: DISKCOMP [d:] [d:][/1][/8]

e) DELTREE
Syntax: DELTREE [/Y] [drive:]path [[drive:]path[...]]

f) TREE
Syntax: C:\> TREE<

g) DOSKEY
Syntax: DOSKEY [/switch ...] [macroname=[text]]

h) EDIT
Syntax: C:\> EDIT < file name>

i) FDISK
Syntax: FDISK [/STATUS] /X
j) FORMAT
Syntax: C:\> FORMAT A:/s

k) SCANDISK
Syntax: SCANDISK[ drive: | volume_name | /all] [/checkonly | /autofix [/nosave] |
/custom] [/fragment] [/surface] [/mono] [/nosave] [/nosummary]

Assignment-3

 What will be the result of the following commands:


 DIR *.COM
 DIR A*.*
 DIR ??A*.*
 DIR ???.COM
 DIR DISK????.*
 DIR *.EXE/O:-S/P
 DEL A : \ . /P
 COPY *.COM *.NEW

Assignment-4

 Create the following files in the root directory

File Name : SALES.TXT

Contents : This is a sales file. It store details about the total amount

of sales done by the company.

File Name : ACCTS.TXT

Contents : This is account of file. It store the salary details of all the

employees in the company.

File Name : HRD.TXT

Contents : This is a HRD file. It store the leave details about all

employees of the company.


Assignment-5

BIT
Assignment-6

 Using the above directory structure do the following:


 Copy all the files form the directory WORD to MBA
 Copy all the files of “EXE” extension form MSOFFICE to WINDOWS directory.
 Copy all the files from WORD directory to the directory (currently in the WORD
directory) to EXECEL directory without using complete path.

Assignment-7

 Write the command for


 List all the files and directions.
 List the files only
 List the directories only
 List all the files whose filename start with “A” character
 List all the directories whose name is start with the character “A”
 List all the files whose name only made with three characters.
 List all the files in ascending order by name
 List all the directories in ascending order by name
 List all the directories in descending order by name or by size
 List all the hidden files
 List all the system files

You might also like