Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started