By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Embed file

P: n/a
I would like to embed a file in my EXE and extract it at runtime. Is
this possible? If so how?
the file is a MS Access Database. Would like to check if the file
doesn't exists in the application directory to extract it from the exe
and place it there.

Apr 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Nikolay Petrov" <Ni**************@gmail.com> schrieb:
I would like to embed a file in my EXE and extract it at runtime. Is
this possible? If so how?
the file is a MS Access Database. Would like to check if the file
doesn't exists in the application directory to extract it from the exe
and place it there.


<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/7f73b72ab0a88452>

Instead of creating an icon object from the resource stream, write the
stream's data to a 'FileStream' object. Maybe it's even better to hold the
default database in a template directory and simply copy this template
database to the desired location instead of blowing up the resource by
embedding larger files.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 5 '06 #2

P: n/a
Thanks Herfried

Apr 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.