WhileNetworking

  • Home
  • CCNA
  • Cisco Packet Tracer Download
    • Cisco packet tracer 6.3
    • cisco packet tracer 6.2
    • Cisco Packet Tracer 7
  • Linux Server Management
  • About Us
  • Privacy Policy
  • Contact Us

DOS command in file operation

You are most welcome to this post.
Disk Operating System
Really thanks to you for your interest in this topics. :)

Using DOS command you can use various operations such as copying, rename, move, delete etc. of a file.  In a file operation a file name can be A to Z letters, 0 to 9 numerical values. Generally, you can’t use the following names as file name.

DOS command in file operation

CLOCK, CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, LPT4, NUL, PRN.

Also in same directory you cant have same file name having same extension. During the rename of the file you can use upper or lower case letters as you wish.

Generally by observing the file extension we can determine what type of file it is. For example, if a file contains the extension of .txt, then we can easily realize that this is a file containing text document. In DOS file some of the extensions and their explanations are,

.EXE – It indicates a program file.

.COM – Indicates a program file also.

.BAT – The file which contains the list of a command (the list is followed by the DOS later)

.INI – For having run a program, the primary command is included in this type of file.

Now lets have some file operation using DOS

Copying a group of files using wild card

Let you have 5 files in a drive D having same extension (for example .doc extension). You want to copy that all files to drive E. Just use this command,

Copy D:\ *.doc E:\

Rename a file during copy

Suppose that you want to copy a file and rename it with a new name while saving in the new directory. Just use this command.

Copy D:\ name.doc E:\newName.doc

If you want you can rename the file in a same directory using this dos command. just use this command,

Copy D:\name.doc D:\newName.doc

Also can use REN command to rename a file. Use this command,

REN old.doc new.doc

Delete operation:

>>If you want to delete a particular file from a directory, then can use, DEL command.

DEL D:\name.doc

This command will delete name.doc file from D directory.

>>Let you are staying E directory and you want to delete a file from that E directory. Then don’t need to indicate that directory path, just type,

DEL \name.doc.

>> Lets you want to delete a group of file (having same extension). For example, you want to delete the files having .tmp extension in directory D.

DEL D:\*.tmp

If you want to see the list of files you want to delete, then may use DIR command.

DIR D:\*.tmp

If there are so many files and you want to see files one by one, then may use,

DIR D:\*.tmp/p

>> Now lets think that, you want to delete .doc files which name starts with N. Then use,

DEL N*.doc

Now lets think that you want to delete some files in which the second letter is N. Then,

DEL ?N*.*

Dec 13, 2017Himadri
 

Share with friends :

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Related

Using DOS commandBasics of hacking : hack your knowledge

Leave a Reply Cancel reply

fifteen − nine =

Himadri

Hi, I'm Himadri. I love blogging with tech topics, specially computer networking. We'll have more fun in the upcoming day. Stay with me. :)

December 13, 2017 Know your computerDOS383
Feel Free to Share :)
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Find Us on Facebook
Choose a category !!
  • CCNA
  • Cisco Certification Exam
  • cisco packet tracer 6.2
  • Cisco packet tracer 6.3
  • Cisco Packet Tracer 7
  • Cisco Packet Tracer 7.1
  • Cisco Packet Tracer 7.2.1
  • Cisco Packet Tracer 7.3
  • Cyber Security
  • Engineering Ebooks
  • Excel
  • IELTS Ebook
  • Internet
  • Know computer
  • Know your computer
  • Laser Processing of Material
  • Linux installation and server management
  • PDF
  • Technology
  • Uncategorized
Top posts
  • Free download Principles of Electronics by VK Mehta
  • The Diffie-Hellman (DH) algorithm
  • Free download Cisco Packet Tracer 7.3 for Windows 64 bit
Archieves
Get latest updates by Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other subscribers
W
SC
wordpress counter
Analytics
Recent Comments
    Browse by categories
    Cyber SecurityLinux installation and server managementCCNAKnow your computerKnow computerCisco Packet Tracer 7UncategorizedCisco Certification ExamInternetPDFCisco Packet Tracer 7.3Engineering EbooksCisco packet tracer 6.3cisco packet tracer 6.2Cisco Packet Tracer 7.1TechnologyExcelLaser Processing of MaterialCisco Packet Tracer 7.2.1IELTS Ebook
    Feel free to contact with us

    Hi, any kind of comment or suggestion is valuable to us. So feel free to contact with us.

    Email: himadri.shekhar.bd@gmail.com

    Name: WhileNetworking.com

    2021 © WhileNetworking