Results 1 to 5 of 5
  1. #1
    reyes94x's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    13

    Post Creating a Random Directory

    hello
    i know that on a .bat file u can type
    md %random%
    and a folder with a random name will apear, if tried to do it in VB but the code doesnt work...is their any code for VB that makes a random directory?

  2. #2
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Code:
    Dim x as string = "D:\" & rnd()*100000
    My.Computer.FileSystem.CreateDirectory(x)

    OR


    Code:
    Dim rand as new Random
    'Creates a random directory from 1 to 10000
    My.Computer.FileSystem.CreateDirectory("D:\" & rand.next(1,10000))

  3. #3
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Wow you're good MJ =D

  4. The Following User Says Thank You to Invidus For This Useful Post:

    MJLover (03-08-2010)

  5. #4
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Quote Originally Posted by ilikewaterha View Post
    Wow you're good MJ =D
    Haha thnx, that was easy

  6. #5
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    easy as hell...


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



Similar Threads

  1. Random Post about WoW
    By SadisticGrin in forum Spammers Corner
    Replies: 3
    Last Post: 10-20-2008, 02:55 PM
  2. Random Shit
    By Dave84311 in forum General
    Replies: 15
    Last Post: 09-22-2007, 06:58 PM
  3. Random Integer Generator
    By SpiderByte in forum C++/C Programming
    Replies: 12
    Last Post: 02-19-2006, 04:46 AM
  4. Random Integer Generator
    By SpiderByte in forum Art & Graphic Design
    Replies: 6
    Last Post: 01-22-2006, 09:51 AM
  5. Creating A GunzRunnable
    By CrazyDeath in forum Game Hacking Tutorials
    Replies: 7
    Last Post: 01-01-2006, 11:20 PM

Tags for this Thread