Creating A Directory

  • Can you use ActiveX to create a windows directory?

     

  • Copied From Microsoft's site and editted to your request:

    Sub FolderPlay()

    Dim fso, fldr, s

    ' Get instance of FileSystemObject.

    Set fso = CreateObject("Scripting.FileSystemObject")

    ' Create a new folder with the FileSystemObject object.

    fso.CreateFolder ("C:\Bogus")

    ' Delete the newly created folder.

    fso.DeleteFolder ("C:\Bogus")

    End Sub

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply