Question: Create a program in PowerShell that will accomplish the following: Get the current date and time in the following format and save it as a
Create a program in PowerShell that will accomplish the following:
- Get the current date and time in the following format and save it as a variable:
- Day-month-year-hour:minute
- Create a directory (in your home account) that contains the year
- Create a directory in the new directory created in 2) for the month (/users/dwitten/2017/11)
- Create a directory in the new directory created in 3) for the day (/users/dwitten/2017/11/07)
- Create an empty file in the directory created in 4) as yourName-savedDate.txt (witten-07-11-2017-18:05.txt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
