Mokmeuh
Mokmeuh

Reputation: 885

Output Builded.exe visual studio

So, I'm coding a chat, and I'm testing it over 2 computer, I've setup a box folder so when I drop the builded.exe in it the other computer have it available.

My question is : is there anyway to put it automatically in a specified folder every time I build the program?

Upvotes: 0

Views: 32

Answers (2)

Adarsh Shah
Adarsh Shah

Reputation: 6775

As others mentioned you can use post build event for that. You can use something like below in the post build event to copy the build output to the location you want.

copy $(TargetPath) "c:\Output" 

Upvotes: 0

Richard
Richard

Reputation: 108975

Use a post build script. This is just a Windows batch (aka. command) script. You can easily set it to copy from the output folder (VS adds macros so that does not need to be hardcoded) to wherever you can access.

Upvotes: 1

Related Questions