I'm trying to get an application to find its current path/directory, and then use that to install a zip file then extract it into the specified location. (SelFolder)
Dim progDirectory As String
Public Sub Install()
progDirectory = Environment.GetFolderPath(System.Environment.CurrentDirectory)
My.Computer.FileSystem.WriteAllBytes(SelFolder & "\Resource.zip", progDirectory, False)
Unzip(SelFolder & "\Resource.zip", SelFolder)
End Sub
The error is where progDirectory is when using the WriteAllBytes Command.
Any help would be greatly appreciated! :)
System.IO.File.Copymethod to copy the zip file to the user selected directory?