Copy file & Move to directory [HELP] 10-15-2016, 12:10 PM
#1
Hello everyone,
I have been stuck on this part for ages and can't seem to fix it.
Basically what I want it do, is copy the application and then place it into AppData, but for some reason the code above gives me a error.
"C:\Users\Gebruiker\AppData\Fevino" is a directory and not a file.
Help is appreciated.
I have been stuck on this part for ages and can't seem to fix it.
Code:
Dim AppData As String = GetFolderPath(SpecialFolder.ApplicationData + "\Fevino")
Dim FilePath As String = Application.ExecutablePath()
If System.IO.File.Exists(FilePath) = True Then
System.IO.File.Copy(FilePath, AppData, True)
End IfBasically what I want it do, is copy the application and then place it into AppData, but for some reason the code above gives me a error.
"C:\Users\Gebruiker\AppData\Fevino" is a directory and not a file.
Help is appreciated.










![[Image: oAqtc2l.png]](https://i.imgur.com/oAqtc2l.png)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)





![[Image: 0b435343e04741c1b2a252f293edd31e.png]](http://image.prntscr.com/image/0b435343e04741c1b2a252f293edd31e.png)

