The command "attrib +r -h" is used in the command prompt to set a file as read-only (+r) and remove the hidden attribute (-h) from a file. This command can help protect files from being accidentally modified and also make hidden files visible.
Assuming you are looking for a specific file in a location, it's as simple as ls <name of file.> assuming you are in the directory you expect it to be in.
The attrib command is a Recovery Console command used to change the file attributes for a file or directory while in Recovery Console. An attrib command is also available from the Command Prompt. attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [filename] +r = This assigns the read-only file attribute to the file or directory. -r = This removes the read-only attribute. +s = This assigns the system file attribute to the file or directory. -s = This removes the system attribute. +h = This assigns the hidden file attribute to the file or directory. -h = This removes the hidden attribute. +c = This assigns the compressed file attribute to the file or directory. -c = This removes the compressed attribute. filename = This is the file or directory that you are wanting to change the attributes of.
batch files are used to make long tasks shorter. for example, If I wanted to change the file extension of every file in the folder EXAMPLEFOLDER from .txt to .doc, I could make a batch file that did that instantly, rather than going into the properties of every file and changing the extension manually
The attrib command is a Recovery Console command used to change the file attributes for a file or directory while in Recovery Console. An attrib command is also available from the Command Prompt. attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [filename] +r = This assigns the read-only file attribute to the file or directory. -r = This removes the read-only attribute. +s = This assigns the system file attribute to the file or directory. -s = This removes the system attribute. +h = This assigns the hidden file attribute to the file or directory. -h = This removes the hidden attribute. +c = This assigns the compressed file attribute to the file or directory. -c = This removes the compressed attribute. filename = This is the file or directory that you are wanting to change the attributes of.
The shell will only execute files that end in a file extension of .exe, .bat, or .com
Both will operate same but i recommend you that if there is only single file use "PUT" and if there are multiple files then you can use "MPUT"...... if there is only single file and if we use MPUT command thgen it will bit slower than PUT command.
cat command concatenates files and prints on the standard output. 1. If you specify only one file it will just display that file 2. If you specify multiple files they will be displayed one after the other.
The 'head' command can only deal with the start of the file, not the end. If you want X number of lines at the end of the file then use the 'tail' command. tail -5 filename will list the last 5 lines of the contents of filename.
command box
file attrib
Attirb command is used to change the attribute of any file of directory. There are following kinds of attributes in DOS:R - Read OnlyH - HiddenA - ArchiveS - SystemAmong all, Archive (A) attributes applies by default as we create any file or directory. System (S) attribute is reserved for the System Files (IO.SYS, MSDOS.SYS, CONFIG.SYS) of MS-DOS. We can apply Read Only or Hidden attributes to any file or directory to make it read only of hidden. The syntax is as follows:To make file Read Only: attrib +r To make file Hidden: attrib +h To remove Read Only attribute: attrib -r To remove Hidden attribute: attrib -h Similarly we can set/remove Archive (A) or System (S) attributes to file with +a/-a or +s/-s option.