In this exercise, you’ll explore the use of constants, variables, concatenation, decision-making, and looping as you create 10 folders in the C:\Mytest directory. This directory was created earlier. If you do not have this folder on your machine, you can either create it manually or modify the following two exercises to use a folder that exists on your machine. In the second exercise in this section, you will modify the script to delete the 10 folders.
Creating multiple folders via PowerShell scripting
Open the Windows PowerShell ISE.
Create a variable called $intFolders and have it hold the value 10. The code to do this is shown here:
$intFolders = 10
Create a variable called $intPad. Do not ...