how to save dll from resources to temp folder.? [solved]
Can you Teach me on how to save dll file from resources to temp.
i tried this code.
public Sub SaveFromResources(ByVal FilePath As String, ByVal File As Object)
Dim FByte() As Byte = File
My.Computer.FileSystem.WriteAllBytes(FilePath, FByte, True)
End Sub
then
You would use it like this: SaveFromResources("C:\Users\MPGH\Desktop\File.exe" , My.Resources.File)
But only works on .exe resources.
When i try on dll , the source of the dll is changed and i open the dll the source became:
System.blablabla Only.
Please Help
made sure you add it to your project recources?....