On Your Own: Lab 14 Creating Folders

In this lab, you are going to practice creating folders. The result of this practice will be a script that can be used for creating multiple folders for a variety of occasions.

  1. Open Notepad.exe.

  2. At the top of the script, set Option Explicit.

  3. Declare variables for the following: numFolders, folderPath, folderPrefix, objFSO, objFolder, and i. The Header section of your script will look like the following:

    Option Explicit
    Dim numFolders
    Dim folderPath
    Dim folderPrefix
    Dim objFSO
    Dim objFolder
    Dim i
  4. Assign numFolders to be equal to 10.

  5. Assign folderPath to be "C:\" or some other local drive on your machine. (Note that the quotation marks are required.)

  6. Assign folderPrefix to be equal to "Student". (The quotation marks ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.