answersLogoWhite

0

What is attrib plus r -h?

Updated: 3/25/2024
User Avatar

JenniferGuindonCoutu...

Lvl 1
11y ago

Best Answer

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.

User Avatar

AnswerBot

3w ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is attrib plus r -h?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you use the ATTRIB command?

Format: ATTRIB (+ or - H R S A) DRIVE:\PATH\File.ext + Sets an attribute - Removes an attribute H = Hidden R = Read-Only S = System A = Archive


How do you change hidden folder to normal folder?

you can change the hidden property for any folder by using the command attrib -s -h -r "foldername" // this to unhide forlder attrib +s +h +r "foldername" // this to hide forlder


Can you lock the folder without using any software?

this code can hide the folder no one can search even hide also can not search. Attrib +r+a+s+h foldername this code is getback for the normal folder Attrib -r-a-s-h foldername


What is working of Attrib command?

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.


What is the working of attrib command?

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.


How do you change attribute for a file?

MS-DOS contains the command "attrib" which accepts two parameters. For example for making a certain file hidden use the following sequence: attrib +h filename. To return to the original condition use the sequence: attrib -h filename.


How do you delete files systemp.dll and systemp.exe?

start run cmd or command cd director/where/files/are attrib -s -h -r file.extention del file.extention


S plus r equals h solve for h?

Congratulations! You already have. h = S+r


Which switches can be used with Attrib command?

Attrib Command(http://www.epanel.co.cc/2010/04/attrib-command.html)Attrib allows a user to change the properties of a specified file. Using Attrib, the user has the capability of changing the file to have any of the below attributes. This command is available in DOS 3.0 and above and Windows 95 and above. We need to apply (+) or (-) option to apply or remove the effect.Read-only (R): Allowing the file to be only viewed and not written to.Archived (A): Allowing Microsoft backup and other backup programs to know what files to backup.Hidden (H): Making the file invisible to standard users.System (S): Making the file an important system file.Syntax: attrib [+/-] [r/a/h/s] [filename] ExamplesTo Set the Read Only permission to Autoexec.bat present in C Drive, we need to run the Command: "attrib +r c:\autoexec.bat"To Remove the Read Only permission from Autoexec.bat, we need to run the Command: "attrib -r c:\autoexec.bat"To Set the Hidden permission to Autoexec.bat, we need to run the command: "attrib +h c:\autoexec.bat"To Remove the Hidden permission from Autoexec.bat, we need to run the Command: "attrib -h c:\autoexec.bat"When you create any file or directory, Archive Attribute set by default. If you want to see the Attribute for each file, just run "attrib" Command and it will show you the present attribute. If you want to see the file with Read Only attribute, run "dir /ar" Command. Similarly for Hidden Attribute run "dir /ah" and for System Attribute run "dir /as". In ideal DOS, it is not possible to delete any file having Read Only or Hidden attributes, but if you are working with Windows Shell, you can delete the file having these attributes.


What is the formula for aldehyde plus sodium hydrogen sulfite?

R - c - h -----> r - c- h


What is the meaning of attrib command in ms-dos?

Attrib allows a user to change the properties of a specified file. Using Attrib, the user has the capability of changing the file to have any of the below attributes. This command is available in DOS 3.0 and above and Windows 95 and above. We need to apply(+) or (-) option to apply or remove the effect.Read-only (R): Allowing the file to be only viewed and not written to.Archived (A): Allowing Microsoft backup and other backup programs to know what files to backup.Hidden (H): Making the file invisible to standard users.System (S): Making the file an important system file.Syntax: attrib [+/-] [r/a/h/s] [filename] ExamplesTo Set the Read Only permission to Autoexec.bat present in CDrive, we need to run the Command: "attrib +r c:\autoexec.bat"To Remove the Read Only permission from Autoexec.bat, we need to run the Command: "attrib -r c:\autoexec.bat"To Set the Hidden permission to Autoexec.bat, we need to run the command: "attrib +h c:\autoexec.bat"To Remove the Hidden permission from Autoexec.bat, we need to run the Command: "attrib -h c:\autoexec.bat"When you create any file or directory, Archive Attribute set by default. If you want to see the Attribute for each file, just run "attrib" Command and it will show you the present attribute. If you want to see the file with Read Only attribute, run "dir /ar" Command. Similarly for Hidden Attribute run "dir /ah" and for System Attribute run "dir /as". In ideal DOS, it is not possible to delete any file having Read Only or Hidden attributes, but if you are working with Windows Shell, you can delete the file having these attributes.


How to find a virus from the run command?

Microsoft Command Prompt "attrib" is a very useful tool to check if your hard drives even your flashdisks have been infected by a virus.You will know if a Malware is inside your hard drive just by looking at the attributes of each files and the file that has the attributes of +s +h +rThe function of attrib is to set and remove file attributes (read-only, archive, system and hidden).Launch attribTo start attrib1. Go to Start Menu > Run2. Type cmd (cmd stands for command prompt)3. Press Enter keyThe Command Prompt will appear showing us where is our location in the directory.command prompt showing the current location in the directoryUsing attribTo use attrib1. Go to the root directory first by typing CD\(because this is always the target of Malware / Virus)2. Type attrib and press Enter keyafter typing attrib, all the attributes of all the files (excluding folders) will be shownIn this example, I have two files that are considered as malware.Note that there are two files which I outlined in red (SilentSoftech.exe and autorun.inf). Since you cannot see this file nor delete it (because the attributes that was set on these files are +s +h +r)1. +s - meaning it is a system file (which also means that you cannot delete it just by using the delete command)2. +h - means it is hidden (so you cannot delete it)3. +r - means it is a read only file ( which also means that you cannot delete it just by using the delete command)Now we need to set the attributes of autorun.inf to -s -h -r (so that we can manually delete it)1. Type attrib -s -h -r autorun.inf ( be sure to include -s -h -r because you cannot change the attributes using only -s or -h or -r alone)2. Type attrib again to check if your changes have been commited3. If the autorun.inf file has no more attributes, you can now delete it by typing del autorun.inf4. Since SilentSoftech.exe is a malware you can remove its attributes by doing step 1 and step 3(just change the filename) ex. attrib -s -h -r silentsoftech.exea) I typed the attrib command with the -s -h -r setting b) the result after I pressed enter - autorun.inf has no attributes leftThere you have it!!!!NOTE : when autorun.inf keeps coming back even if you already deleted it, be sure to check your Task Manager by pressing CTRL + ALT + DELETE ( a virus is still running as a process that's why you cannot delete it. KILL the process first by selecting it and clicking End Process.NOTE: You can also apply the attrib -s -h -r command to all the partition of your computer, drive D: drive E: drive F: (all of your drives). For example. for drive D, just type "D:" (minus the double quote) then you can see that your current drive is D.. type there the command "attrib -s -h -r *.exe" for exe files and "attrib -s -h -r *.inf" and then delete the file by "del autorun.inf".