Opens the file using the default application


1.Creates the following folder structure on the C: drive of your computer:
•Scripts_New
?Networking
?User
?Management

•In this script the Networking, User , and Management folders should be in the Scripts_New folder
•List the contents of the Scripts_New directory and export to dir.txt file

2.Deletes the folder Scripts_New structure created in the previous step.

3.Creates a file named users.txt
•Adds the following lines to the users.txt file:
?ckent,Clark Kent,1Ppassword3
?bwayne,Bruce Wayne, 2Password!

•Opens the file using the default application for the file

4.Set the attributes of the users.txt file to hidden and archive.

5.Reads the users.txt file assigns it to the variable $file
•Loops through the variable $file using a foreach statement and the dummy variable $user to read each line from the array $file.
•In the script block of the foreach statement do the following:
?Use the split method of the string object $user to split the line at the comma and assign this value to the variable $user_info
?Create a user account with the information in the $user_info array and the net user command 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Opens the file using the default application
Reference No:- TGS0107846

Expected delivery within 24 Hours