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:

  1. Get the current date and time in the following format and save it as a variable:
    1. Day-month-year-hour:minute
  2. Create a directory (in your home account) that contains the year
  3. Create a directory in the new directory created in 2) for the month (/users/dwitten/2017/11)
  4. Create a directory in the new directory created in 3) for the day (/users/dwitten/2017/11/07)
  5. 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 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!