Nepal Oil Corporation2081 BSQuestion 3 of 16
What is Wildcard? Provide the examples of MS-DOS external and internal command with their execution syntax.
5 marks
Question source
- Exam year
- 2081 BS / 2024 AD
- Level
- Level 5
- Paper
- Technical – Subjective
- Section
- Section A: Short & Long Answer Questions (50 Marks)
Model answer
A Wildcard is a special character used in command-line environments to substitute for one or more unspecified characters in search or file management operations.
*(Asterisk): Matches zero or more characters.?(Question mark): Matches exactly one character.
MS-DOS Internal Commands (Built into command.com):
DIR— Displays list of files and directories.- Syntax:
DIR [drive:][path][filename](Example:DIR *.TXT)
- Syntax:
COPY— Copies files from one location to another.- Syntax:
COPY [source] [destination](Example:COPY doc.txt D:\backup\)
- Syntax:
MS-DOS External Commands (Stored as separate executable files like .EXE or .COM):
FORMAT— Formats a disk for use with MS-DOS.- Syntax:
FORMAT drive:(Example:FORMAT D: /FS:NTFS)
- Syntax:
CHKDSK— Checks a disk and displays a status report.- Syntax:
CHKDSK [drive:] [/F] [/R](Example:CHKDSK C: /F)
- Syntax: