I am currently trying to make a simple file uploader using http://msdn.microsoft.com/en-us/library/w3kksch7.aspx
and its pretty straight forward except I keep getting the error Access To the path 'E:\Temporary' is denied
I tried running visual studio 2012 as admin
I already change the directory (It was at C: earlier)
Help and advice is appreciated Thank You
Public class Upload
Private Sub browse_btn_Click(sender As Object, e as EventArgs) Handles browse_btn.Click
Dim result As DialogResult
Using ofd As New OpenFileDialog
ofd.InitialDirectory = My.Computer.FileSystem.SpecialDirectorie.MyDocuments
itemLoc_txt = ofd.FileName
End Sub
Private Sub upload_btn_Click(sender As Object, e as EventArgs) Handles upload_btn.Click
Try
My.Computer.Network.UploadFile("itemLoc_txt.Text","E:\Temporary")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class