|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do I copy file from resources to C:\Notes?How do I programmatically copy SpecialNote.txt from my VB.NET app's project
resources to C:\Notes\ on user's PC at runtime? On 5/30/2010 10:59 PM, Mark B wrote:
> How do I programmatically copy SpecialNote.txt from my VB.NET app's Why did you ask this here and in the C# group, with a slight modification?> project resources to C:\Notes\ on user's PC at runtime? -- Mike Dim myEncoding As New System.Text.ASCIIEncoding()
System.IO.File.WriteAllBytes(myXMLFileLocation, myEncoding.GetBytes(Properties.Resources.AddinUserSettingsXML)) Show quoteHide quote "Mark B" <none***@none.com> wrote in message news:e8sjS1GALHA.5476@TK2MSFTNGP06.phx.gbl... > How do I programmatically copy SpecialNote.txt from my VB.NET app's > project resources to C:\Notes\ on user's PC at runtime? On 31/05/2010 03:59, Mark B wrote:
> How do I programmatically copy SpecialNote.txt from my VB.NET app's Have you made this directory writeable by /every/ user?> project resources to C:\Notes\ on user's PC at runtime? If not, UAC will get in the way on Vista and Windows 7 - directories outside the user's own hive are usually read-only. Do you overwrite the file every time your application runs, or only to first create it? Why do you need to copy it there anyway? Do you need to "feed" it to some other program? If you're only using it within your own code, you can probably find a way to use the text in the Resource object directly. HTH, Phill W.
make a dll
Disable a Textbox default context menu Print from console application DataGridView values. How to use Serial Port Component bindingSource.Position = ... doesn't change the current property. need help looping through string of names connect bindingSource to text object. priority queue Serialization problem |
|||||||||||||||||||||||