अपने जानने वालों में ये पोस्ट शेयर करें ...
MS-DOS commands with easy example-part2
MS-DOS (Character User Interface) with easy explanation
…………………………………………………………………………………………….
13. COPY command
इसके द्वारा आप पहले से बनी हुई किसी file की duplicate file बना सकते हैं
(This command is used to create a duplicate file of any file.)
Syntax 1- C: \> Copy <File Name><extension of the file> <New Name of the File><extension of new named file>
Syntax 2-C: \> Copy <Path \ File Name (with extension of the file )> <Target Drive>
Ex.- C: \> COPY ABC.txt XYZ.txt
Ex.- C: \> COPY Nursing.doc D:
Ex.- C: \> COPY *.txt E: इस command के द्वारा आप C drive में पड़ी हुई सभी text ( notepad) file को E drive में कॉपी कर सकते हैं
( with the help of this command All text file ( such as Notepad file) will be copied to E -Drive )
यहाँ जो ( *) प्रयोग किया जा रहा है वो wildcard है और उससे हम operating system को ये बता रहे हैं ” text format की सभी files को E drive में पहुँचाना है “
Remark:- The above command used a wildcard (*) to copy all text files to the E: drive.
14. DEL
इसके द्वारा हम किसी file को delete करते है यदि हमें ms word की file को delete करना हो तो file के नाम के आगे उसका format .doc लिखते हैं , notepad की file के लिए .txt लिखते हैं और दूसरी अन्य files के लिए file के नाम के साथ उसका format लिखना होता हैं .
This command is used to delete the file from system such as if there is a file named A.txt then it will be delete as given below :-
Syntax- C: \> Del <File name with extension>
Ex. – C: \> Del A.txt (then press ENTER button of keyboard, you can see the file named A is deleted)
Remark : delete command से हम मात्र files को ही delete करते हैं , folder या directory इस command से delete नही होतें हैं .
Remark:- folders/directories can’t be deleted by Delete command
15. ERASE
इससे हम file को अपने system से erase कर ( मिटा ) देते है , ये delete command जैसे ही प्रयोग की जाती है
(This command is used to Erase the file from system such as if there is a file named A.txt then it will be Erased as given below ):-
Syntax- C: \> Erase <File name with extension>
Ex. – C: \> Erase A.txt
( ये लिखकर कीबोर्ड का ENTER बटन दबाएं, आप देख सकते हैं कि A नाम की फ़ाइल मिटा दी गई है )
(then press ENTER button of keyboard, you can see the file named A is Erased)
Remark : Erase command से हम मात्र files को ही Erase करते हैं , folder या directory इस command से Erase नही होतें हैं
Remark:- folders/directories can’t be Erased by Erase command
16. REN
इसके द्वारा हम किसी file या folder या directory के नाम को परिवर्तित कर सकते हैं .
(This command is used to rename the file.)
Syntax- C: \> REN <Old File Name><Old File Extension> <New File Name><New File Extension>
Ex. – C: \> REN abc.txt xyz.txt
17. TYPE
इसके द्वारा हम file में क्या है,ये देख सकते है, इस command को लिखने के बाद हम file का नाम और उसका extension भी लिखते हैं
(We can use this command to see the text of the file on the screen. Extension is required to see the content of file )
Syntax- C: \> TYPE <File name><Extension>
Ex. – C: \> TYPE ABC.txt ( इससे ABC file, जोकि एक text file है , उस file में क्या लिखा है, देख सकते हैं .)
18. EXIT
इसको लिखने के बाद enter करते ही हम MS-DOS से बाहर हो जाते है और DOS बंद हो जाती है
(This command is used to exit Dos prompt.)
Syntax- C: \> Exit
Ex- C: \> Exit
19. PROMPT COMMAND
command prompt पर काम करते हुए जहाँ cursor blink करता है, उसे prompt कहते हैं, सामान्यतः C drive पर ही cursor blink करता है , तो यदि उस prompt को परिवर्तित करना हो तो इस command को लिखने के बाद जो भी लिखेंगे ,वो ही prompt बन जायेगा
( This command is used to change Prompt that presently display on the screen.)
Syntax- C:\>prompt <text>
(text specifies new command prompt, Default prompt is C:\>,that is displayed on screen at the starting point )
Ex. – C:\> prompt abc ( ये लिखने के बाद enter करते ही आपकी screen पर prompt – abc हो जायेगा
(after pressing ENTER button of the keyboard, prompt will be changed as abc)
prompt command को अनेक प्रकार से प्रयोग किया जा सकता है , इसको सही प्रकार से समझने के लिए रोआप अपने prompt पर HELP prompt लिख कर enter कर दें , इससे prompt command को किस किस प्रकार से प्रयोग किया जा सकता है वो सब कुछ screen पर लिखा आ जायेगा .
(The prompt command can be used in many ways, to understand it correctly,
you can enter ” PROMPT ” followed by ” HELP” on your prompt, after pressing the Enter button you can see a lots of codes you can use to change the prompt of the screen.)
Any prompt can be made up of normal characters & the following special codes:
codes characters
$A & (Ampersand)
$B | (pipe)
$C ( (Left parenthesis)
$D Current date
$E Escape code (ASCII code 27)
$F ) (Right parenthesis)
$G > (greater-than sign)
$H Backspace (erases previous c
$L < (less-than sign)
$N Label of Current drive
$P Label of Current drive and path ( where you are presently )
$Q = (equal sign)
$S (space)
$T Current time
$V Windows version number
$_ Carriage return and linefeed
$$ $ (dollar sign)
Remark : यदि आप पहले वाला ही prompt , screen पर पुनः देखना चाहते हैं तो screen पर prompt लिखकर enter बटन दबा दें , पहले वाला prompt आ जायेगा
Remark:- if you want default prompt again then write prompt and press ENTER, prompt will be changed as C:\>
COPY,DELETE,ERASE,RENAME,TYPE,EXIT,PROMPT command
******************************************************************************
Previous Topic : MS-DOS commands with example in hindi internal commands A2Z
******************************************************************************
click the link below for next topic
Next Topic : MS-DOS commands with easy example-part3