473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Adding Files to EXE

Hi All,
I have a small exe app ( basic a dialog box) that when lauched needs to
"copy" some files in a directory chosen by the user (within the dialog). I
cannot use an installation package because there are some particular tasks
to be done from the exe.
Anyhow I was wondering if it possibile to include files within the (C#)exe
and then extract them from the exe when launched...sort of an installation.
I was thinking to add them as resources but I do not know how to extract
them.

Please any hint will be appreciated

Thank you
Zagor
Mar 18 '06 #1
1 1300
Not sure whether it can be done in C#, but have you considered just using
one of those compression programs with SFX function(like ZIP, RAR or so)?

"Zagor" <za***@rogers.com> ¼¶¼g©ó¶l¥ó·s»D:us**************@TK2MSFTNGP10.phx.g bl...
Hi All,
I have a small exe app ( basic a dialog box) that when lauched needs to
"copy" some files in a directory chosen by the user (within the dialog). I
cannot use an installation package because there are some particular tasks
to be done from the exe.
Anyhow I was wondering if it possibile to include files within the (C#)exe
and then extract them from the exe when launched...sort of an
installation.
I was thinking to add them as resources but I do not know how to extract
them.

Please any hint will be appreciated

Thank you
Zagor

Mar 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SD WinGirl | last post by:
Our project is set up so that .cs source files are automatically generated. I would like to automate the adding of the .cs source files to the project (.csproj) file automatically. Are there...
5
by: surrealtrauma | last post by:
the requirement is : Create a class called Rational (rational.h) for performing arithmetic with fractions. Write a program to test your class. Use Integer variables to represent the private data...
1
by: SD WinGirl | last post by:
Our project is set up so that .cs source files are automatically generated. I would like to automate the adding of the .cs source files to the project (.csproj) file automatically. Are there...
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
26
by: Simon Jefferies | last post by:
Hello, I am trying to add an item to a checked list box, like: clbList.Items.add("Hello",true) I get an error back: Run-time exception thrown: System.ArgumentOutOfRangeException -...
5
by: Justin Fancy | last post by:
Hi everyone, I need some help. I'm placing text files into a created database using vb.Net. The problem is that, i need two seperate sql statements to add both files because they are in...
2
by: Justin Fancy | last post by:
Hi everyone, I need some help. I'm placing text files into a created database using vb.Net. The problem is that, i need two seperate sql statements to add both files because they are in...
5
by: DBC User | last post by:
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have...
1
by: sherifffruitfly | last post by:
Hi all, I'm tasked with adding a few fields to our database, and all of the stuff that goes along with it (updating c# UI code, etc.). The database is a few hundred tables, with all of the...
0
by: MimiMi | last post by:
Hi! I'm using NSIS to build an installer and would like to be able to add configuration files AFTER the executable is created. That is, so that I can build and use the same installer (the same...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.