Question: Objective: To get experience using the PowerShell Application and to practice using files, directories / folders and the file path. Open the PowerShell Application Verify

Objective: To get experience using the PowerShell Application and to practice using files, directories/folders and the file path.
Open the PowerShell Application
Verify that the C :Sweet and C : \itrus do not already exist on your computer. If so, delete these items
Verify with the Tree command that these directories do not exist on your computer.
Take a screen shot and paste it in a WordPad document to verify that these folders do not exist. Save your WordPad document and yourlastname powershelllab1.rtf Identify it with a label as Screenshot1
Set up your directory structure. You have 2 directories/folders that are subdirectories of the C: drive
a. C:ISweet
b. C:Citrus
Make those 2 directories using PowerShell exactly as listed on your computer. *hint - see if you can make them both at the same time on one command line instead of having to use 2 commands (5 points EC if you can do this ).
Take a screenshot of the command line that you used and paste it to your WordPad document with the label EC_Screenshot for 5 points extra credit if you chose to do this portion using one command line(optional)
Make 2 subdirectories using PowerShell under each parent directory.
Create the directory named Apples as a subdirectory of C : Sweet and another named grapes under C:ISweet.
Create the directory named oranges as a subdirectory of C :Citrus and another named lemons under C:XCitrus.
Take a Screenshot of your directory structure using the Tree command and paste it to your document. Label it as Screenshot2
Determine how to create files in your directories with the command line only (and not a text editor). The explanation for this is called a pipe.
Which of the following will create a text file for you?
a. echo sometext1 I sometext1.txt
b. echo sometext 2> sometext 2.txt
c. echo sometext 3| sometext3.txt
Using what you learned from the step listed above, create the following files from the command line in the given location
a. In the apples directory make a text file named gala.txt
b. In the grapes directory make a text file named red.txt
c. In the oranges directory make a text file named navel.txt
d. In the lemons directory make a text file named FloridaLemons.txt
Take a Screenshot of your directory structure using the Tree command (note that it must show the files as well as the directories) and paste it to your document. Label it as Screenshot3
Submit your document into Blackboard in the appropriate topic for credit
 Objective: To get experience using the PowerShell Application and to practice

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!