title: VB.NET Copy a file from resource to hard disk
body: <p>I want to copy a file from my project program resource to hard disk.<br>
  I use this code but it says "Access to the path 'D:\New Folder' is denied."<br>
  <code>IO.File.WriteAllText(MyPath, My.Resources.MyFile)  </code><br>
  But I have administrator rights.Is there any other code to copy a file from resource ?<br>
  My OS is Win XP Service Pack 3<br>
  Thanks</p>