Solved

copy a file after it is build

Posted on 2004-08-26
3
224 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now