Sep 25, 2016 11:21 AM
(This post was last modified: Sep 25, 2016 11:21 AM by SirNoobHack.)
Code
My.Computer.FileSystem.CreateDirectory("adasd")
My.Computer.FileSystem.CreateDirectory("afasfas")
My.Computer.FileSystem.CreateDirectory("dsgdsf")
My.Computer.FileSystem.CreateDirectory("adasdsasd")
My.Computer.FileSystem.CreateDirectory("adaaaf")
My.Computer.FileSystem.CreateDirectory("asdadassd")
My.Computer.FileSystem.CreateDirectory("gdfsgdfg")
My.Computer.FileSystem.CreateDirectory("adasfs")
My.Computer.FileSystem.CreateDirectory("afafssaf")
My.Computer.FileSystem.CreateDirectory("afsafgsd")How can I shorten the class length if you understand what I mean.
Dim CreateD() = My.Computer.FileSystem.CreateDirectory(Of String) was the best I could think of but it was incorrect. I don't even know what it's called that I'm trying to do :/
So to create a new directory I would only have to type:
CreateD(folderName)
Any sort of help would be GREATLY appreciated! 😉


