Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Creating a directory programmatically

Creating a directory programmatically

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    beowulfagate
    wrote on last edited by
    #1

    Anybody here know how to create a directory with spaces? Just like "C:\something\something more"?

    P P 3 Replies Last reply
    0
    • B beowulfagate

      Anybody here know how to create a directory with spaces? Just like "C:\something\something more"?

      P Offline
      P Offline
      Purple Monk
      wrote on last edited by
      #2

      MkDir "C:\something\something more" However the folder something would have to exist. So it would be MkDir "C:\something" MkDir "C:\something\something more" if both didn't exist It's so true.

      1 Reply Last reply
      0
      • B beowulfagate

        Anybody here know how to create a directory with spaces? Just like "C:\something\something more"?

        P Offline
        P Offline
        Purple Monk
        wrote on last edited by
        #3

        You could also use api functions http://www.mentalis.org/apilist/CreateDirectoryEx.shtml http://www.mentalis.org/apilist/CreateDirectory.shtml Again you have to create the dirs in steps. It's so True.

        1 Reply Last reply
        0
        • B beowulfagate

          Anybody here know how to create a directory with spaces? Just like "C:\something\something more"?

          P Offline
          P Offline
          progload
          wrote on last edited by
          #4

          You mean somthing like this? Imports System.IO Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Directory.CreateDirectory("C:\something\something more") End Sub

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups