Question:
basic questions on DOS, file attributes,, please help?
Ahmed
2011-11-04 17:58:03 UTC
plz help me answering these question,, spent so much time but still couldnt figure out how to answer them

1- Show the contents which include file attributes under root of the drive C.

2- how to create a "new folder" under root and copy “autoexec.bat” file to this new folder, change focus of the command prompt to this new folder and show the content of this new folder.

3-how to change the attributes of autoexec.bat file under "new folder" file folder to read only and show your result.
Three answers:
Erick
2011-11-04 18:10:51 UTC
Open a "run" window on Windows (by pressing Win+R) and type "cmd" in the textbox. This will open a command window. You should see something like "C:\Users\yourname>" depending on your version of Windows.



1- go to c: (root level) with "cd\" until you see the prompt "c:\>". Once there type "attrib" and it will show all files with their attributes



2- here is the list of commands:



c:\>md mynewfoldername



c:\>copy autoexec.bat c:\mynewfolder



c:\>cd mynewfoldername



c:\mynewfoldername>dir



Don't forget to hit enter after each line



3- here is the list of commands:



c:\mynewfoldername>attrib autoexec.bat +r



c:\mynewfoldername>attrib autoexec.bat



Don't forget to hit enter after each line



To get some help, type "help" on the command line and then the command name like "help dir", "help md", "help attrib", etc



:)
parke
2016-12-10 16:03:07 UTC
the 1st theory that got here to my concepts upon examining this placed up exchange right into a million. WHY is college training cost is united statesa. ridiculously costly? WHY do colleges choose plenty money? a school isn't a employer like Apple or Microsoft. My sister will graduate from her 4 years of faculty quickly and the completed coast of training pee paid for the time of those 4 years....is OMG too plenty. the quantity is especially much as plenty because of the fact the U.S. national debt. 2. do colleges fairly choose a great variety of money? 3. united statesa. is presently dealing with an financial disaster; it fairly is envisioned to be between the worst ever in U.S. historic previous. So unemployment is a increasing situation, the economic device is getting spoiled and there are extra harmless electorate suffering below the poverty line. and that i'm no longer against the government however the federal government would not look sorting it out properly. i do no longer understand that plenty related to the ecnonomy, so I found out from my sister (she's a corporation / economics significant) and that i will tell that the rustic, the economic device and so on are all dealing with a disaster. Soo....i do no longer understand yet except the government delivers to love help the unfavorable pay for faculty or some thing I strongly recommend that faculties do no longer improve training costs. in any different case...united statesa. will face an excellent worse academic disaster. Does the stuff I typed make experience? wish it does. And......the coolest information is that the costly training cost paid to a great college exchange into fairly fairly worth it on the grounds that my sister have been given a great activity 2 weeks in the previous commencement.
anonymous
2011-11-04 18:13:36 UTC
start the command prompt.

Changing to the C: drive

cd c:



making a folder (director)

mkdir name

replace name with what your want



copy a file to the specified location

copy autoexec.bat name

name is of course whatever you named it



change to the new directory

cd name



changing the attrib

first look at what they currently are

if the file is called autoexec.bat



attrib autoexect.bat



will output the values associated with that file



changing the attributes

attrib autoexec.bat +R



run attrib on the file again to see that it's readonly



How do i know that R means read only?

type in



attrib /?



to get the helpfile


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...