All i need is copy folder from my c# exe to user directory .i cannot have folder separate from exe.i can have only one exe.Is there anyway to marge a folder inside my c# exe file.so then i can paste it to user directory when execute it.but i cannot use a installer setup .i can have only single exe and it should paste a folder which is inside of exe to the user directory.
-
Maybe embed the files as a resource in the EXE, and read them as a stream, or uncompress them to the target directory when the program loads?Mike Christensen– Mike Christensen2014-09-02 17:15:38 +00:00Commented Sep 2, 2014 at 17:15
-
@MikeChristensen yes i want to uncompressPiumi Wandana– Piumi Wandana2014-09-02 17:31:08 +00:00Commented Sep 2, 2014 at 17:31
Add a comment
|
1 Answer
Make it simple.
- Add files to the project as embedded resources
- Create a folder from your application
- Extract resource files and save them to that folder
You can follow this answer on stackoverflow to help in extracting embedded files and save them.