Solved

copy a file after it is build

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

773 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