6. Describe what you would type in, using the Windows command prompt, to do each
ID: 3902035 • Letter: 6
Question
6. Describe what you would type in, using the Windows command prompt, to do each of the following, in sequence (that is, each command affects what you have to do in the next command). Note that you might have to type more than one command in some cases. Assume that you are starting off in a directory that contains a file called sample.txt.
a. Create a directory called INFO.
b. Copy sample.txt into INFO.
c. Create a directory inside INFO called INFO1211.
d. Move the version of sample.txt that is in INFO into INFO1211.
e. Rename the original sample.txt file that you started with as data.txt.
Explanation / Answer
Solution:-
a.) TO create a directory called info:-
mkdir INFO
then press enter
b.) The first step is to copy the file location.
The second step is to go inside the folder INFO by typing:-
cd INFO
The Third step is to type:-
copy sample.txt c:userswork1desktop
where, "c:userswork1desktop" is the folder where sample.txt is located.
c.) First go inside INFO by:-
cd INFO
Then, Create a directory by:-
cd INFO1211
d.) First go inside INFO by typing:-
cd INFO
Now copy the sample.txt location, that is in INFO.
After that go inside INFO1211, by:-
cd INFO1211
then, type:-
copy sample.txt c:userswork1desktopINFO
where, "c:userswork1desktopINFO" is the folder where sample.txt is located.
e.) For this:- In the folder where sample.txt is present, type:-
rename sample.txt data.txt
===========SOLUTION ENDS==============
Note:- Please upvote if it helped, else do comment on the part you needs help. I'll be happy to help.
Thanks!!
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.