Solved

copy a file after it is build

Posted on 2004-08-26
3
241 Views
Last Modified: 2010-04-01
I am using visual c++ 6.0.  How can I make it so my .dll file is copied to another directory right after it is built?  Let's say visual c++ compiles and builds the file mydll.dll and I want it copied to c:\windows\system32 right after it's built.
0
Comment
Question by:lwinkenb
3 Comments
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 125 total points
ID: 11910204
Just go to

Project -> Settings... -> Link tab

and in "Output filename" textbox type:

c:\windows\system32\mydll.dll

0
 
LVL 6

Accepted Solution

by:
Svetlin_Panayotov earned 125 total points
ID: 11910233
Yet another - in Project -> Settings -> Post-build you can add
copy $(TargetName) c:\windows\system32\
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11910729
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question