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

Jonesopolis
  • 25,034
  • 12
  • 68
  • 112
Piumi Wandana
  • 220
  • 1
  • 5
  • 14

1 Answers1

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.

Community
  • 1
  • 1
Shaharyar
  • 12,254
  • 4
  • 46
  • 66