-1

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.

2
  • 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? Commented Sep 2, 2014 at 17:15
  • @MikeChristensen yes i want to uncompress Commented Sep 2, 2014 at 17:31

1 Answer 1

1

Make it simple.

  1. Add files to the project as embedded resources
  2. Create a folder from your application
  3. 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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.