How i can replace a file
Post your questions regarding programming in Visual Basic 6 in here.
3 posts
Page 1 of 1
How i can replace a file whit another file ,whit same name and from my resources folder
please Help!!!
please Help!!!
Last edited by krisis on Sun Nov 01, 2009 10:02 am, edited 1 time in total.
Hello,
Once youve added your file to resources make sure that in your code you import:
Once youve added your file to resources make sure that in your code you import:
Code: Select all
Then inside a "Button_Click" event or however your going to extract the file add this code:Imports System.IO
Code: Select all
And thats it cooll;File.WriteAllBytes("C:\NameOfFile.ext", My.Resources.NameOfResourceFile)
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023