I'm quite a noob when it comes to classes, subs and that kind of stuff. I'm making a program in VB 2012 that will create a portable version of Minecraft on your USB key.
Here's some code ("port_cr"):
'Get %appdata%
Dim appdata As String = Environ("USERPROFILE") & "\AppData\roaming\.minecraft"
'Get the path
port_mc_getPath.ShowDialog()
Dim save_mc As String = port_mc_getPath.SelectedPath
'Copy everything
My.Computer.FileSystem.CreateDirectory(save_mc & "\Data")
My.Computer.FileSystem.CreateDirectory(save_mc & "\Bin")
My.Computer.FileSystem.CreateDirectory(save_mc & "\Data\.minecraft")
My.Computer.FileSystem.CopyDirectory(appdata, save_mc & "\Data\.minecraft", True)
'OPEN ANOTHER FORM TO CHOOSE THE LAUNCHER YOU WANT TO DOWNLOAD
chooseLauncher.Show()
"chooseLauncher" is a form with some buttons that download the appopriate files to the path specified in the "port_cr" form, which is what I can't figure out how to do. If someone could tell me how to do this simply I'd really appreciate it