What is wildcard? Provide the examples of MS-DOS external and internal command with their execution syntax.

0
GK SIR
Jun 16, 2025 07:47 AM 0 Answers Operating System
Member Since Dec 2016
Subscribed Subscribe Not subscribe
Flag(0)

A wildcard is a special character used in command-line environments to represent one or more other characters. It is especially useful for working with multiple files at once, such as copying, deleting, or listing files that share similar names.

Common wildcards in MS-DOS:

  • * (asterisk): Represents zero or more characters.
    Example: *.txt
  • ? (question mark): Represents any single character.
    Example: file?.txt

Examples of MS-DOS Commands

  1. Internal Commands:

These are built into the MS-DOS command interpreter (COMMAND.COM) and do not require any separate files to run.

Examples with syntax:

  • DIR – Lists files and directories
    ➤ Syntax: DIR *.exe
  • COPY – Copies files from one location to another
    ➤ Syntax: COPY file1.txt D:\Files
  • DEL – Deletes one or more files
    ➤ Syntax: DEL *.bak
  • CD – Changes the current directory
    ➤ Syntax: CD Documents
  • CLS – Clears the screen
    ➤ Syntax: CLS

 

  1. External Commands:

These are separate program files (.COM, .EXE, or .BAT) that must be present in the system or path.

Examples with syntax:

  • FORMAT – Formats a disk
    ➤ Syntax: FORMAT A:
  • XCOPY – Copies files and directory trees
    ➤ Syntax: XCOPY C:\Data\*.* D:\Backup\ /S
  • DISKCOPY – Copies the entire contents of one floppy disk to another
    ➤ Syntax: DISKCOPY A: B:
  • CHKDSK – Checks a disk for errors
    ➤ Syntax: CHKDSK C:
  • DELTREE – Deletes a directory and all its contents
    ➤ Syntax: DELTREE C:\OldFiles

 

वाइल्डकार्ड भन्नाले कमाण्ड लाइन जस्तै: MS-DOS मा प्रयोग गरिने विशेष चिन्हहरू हुन्, जसले कुनै फाइल वा फोल्डरको नाममा एक वा एकभन्दा बढी अक्षरहरूको प्रतिनिधित्व गर्छन्।

MS-DOS मा प्रयोग हुने सामान्य वाइल्डकार्डहरू निम्नानुसार छन्:

  • * (एस्ट्रिक्स): शून्य वा धेरै अक्षरहरूको प्रतिनिधित्व गर्दछन्।
    उदाहरण: *.txt
  • ? (प्रश्नवाचक चिन्ह): जुनसुकै एक अक्षर प्रतिनिधित्व गर्छ।
    उदाहरण: file?.txt

 

MS-DOS को Internal र External Command हरूका उदाहरणहरू निम्नानुसार रहेका छन्:

१. Internal Commands:

यी कमाण्डहरु COMMAND.COM फाइल भित्रै समावेश हुन्छन्, र अलग फाइल चाहिंदैन।

उदाहरण र Syntax यस प्रकार छन्:

  • DIR – फाइल र फोल्डरहरूको सूची देखाउँछ
    ➤ Syntax: DIR *.exe
  • COPY – फाइलहरू एक ठाउँबाट अर्को ठाउँमा कपी गर्दछ
    ➤ Syntax: COPY file1.txt D:\Backup
  • DEL – फाइलहरू डिलिट गर्दछ
    ➤ Syntax: DEL *.bak
  • CD – फोल्डर परिवर्तन गर्दछ
    ➤ Syntax: CD Documents
  • CLS – स्क्रिन खाली (clear) गर्दछ
    ➤ Syntax: CLS

 

२. External Commands:

यी कमाण्डहरु छुट्टै प्रोग्राम फाइल (.COM, .EXE, .BAT) को रूपमा हुन्छन् र रन गर्नलाई ती फाइलहरू प्रणालीमा हुनु आवश्यक हुन्छ।

उदाहरण र Syntax यस प्रकार रहेका छन्:

  • FORMAT – डिस्क फर्म्याट गर्दछ
    ➤ Syntax: FORMAT A:
  • XCOPY – फाइल र फोल्डरहरू सहित कपी गर्दछ
    ➤ Syntax: XCOPY C:\Data\*.* D:\Backup\ /S
  • DISKCOPY – एक फ्लपी डिस्कबाट अर्कोमा सम्पूर्ण सामग्री कपी गर्दछ
    ➤ Syntax: DISKCOPY A: B:
  • CHKDSK – डिस्कको त्रुटि जाँच गर्दछ
    ➤ Syntax: CHKDSK C:
  • DELTREE – कुनै फोल्डर र त्यसमा रहेका सबै फाइलहरू डिलिट गर्दछ

➤ Syntax: DELTREE C:\OldFiles

0 Subscribers
Submit Answer
Please login to submit answer.
0 Answers
Sort By:

Leave a Reply

Your email address will not be published. Required fields are marked *

*