Embed file

N

Nikolay Petrov

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.
 
H

Herfried K. Wagner [MVP]

Nikolay Petrov said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top