Results 1 to 2 of 2

Thread: Creating a New Folder name from Inputbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    12

    Creating a New Folder name from Inputbox

    I am trying to work a out a piece of code for alouwing me to create folder on a network drive, from what i enter in an input box. I.E.

    Inputbox loads ----> "ENTER FOLDER NAME"
    createfolder \\server\users\"ENTER FOLDER NAME"

    How would i go about doing this? iv been hunting around the net for a few hours trying things out and i they don't seem to do what im looking for,

    can any please help me.

    Cheers

    Liam

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Creating a New Folder name from Inputbox

    VB Code:
    1. Dim folderName As String = InputBox(...)
    2.  
    3. If folderName <> String.Empty Then
    4.     IO.Directory.CreateDirectory(IO.Path.Combine("\\server\users", folderName))
    5. End If
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width