Imports System.IO
Public Class Form1

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        System.IO.File.WriteAllBytes("e:\", My.Resources.file.exe)

    End Sub
End Class

but alwys i get thie error access to the path e:\ is denied
but the hard drive is accessable ,
so how i copy a fil from resource to a a disk drive like F:\ /

It is possible to have security permissons denying writing to the root of a drive.

Also, are you getting the data from notepad or something of the sort?

You probably need administrator permission to write to your e: drive. you can fix that like this, in solution explorer rightclick on My Project, then click on open. In the window that opens click on View Windows Settings and follow the instructions that are shown there. Hope this helps