How to copy the existing dll onto a new one?

I have a dll called SAT10_UE.dll generated by my code in VC++. I want to copy this over to a dll by another name.
I went to the Custom Built Setup in the project properties and in the command line wrote : Copy SAT10_UE.dll SAT10_BarCodeUE.dll. Still, I can't copy it over after compiling.Please help
ReedsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mahesh1402Commented:
What exactly you want to do ?

>>in the command line wrote : Copy SAT10_UE.dll SAT10_BarCodeUE.dll. Still, I can't copy it over after compiling.Please help

Have you tried closing your DLL project and issue Copy.. command on prompt ?

MAHESH

0
ReedsAuthor Commented:
I am working on Windows XP, writing my program in Visual C++. FAter I compile, the code the dll is created in the Debug/Res folder. I want to copy the resulting dll(SAT10_UE.dll ) to new one (SAT10_BarCodeUE.dll).

 I went to the project properties in Visula Studio environment and then to Custom Build Setup. Here there is a CommandLine, Description,Outputs and Additional Dependencies. In the box for command line, I wrote Copy SAT10_UE.dll SAT10_BarCodeUE.dll
0
mahesh1402Commented:
also have you tried it by unregistering DLL using /u option ?

regsvr32 /u SAT10_UE.dll

Copy SAT10_UE.dll SAT10_BarCodeUE.dll


MAHESH
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

mahesh1402Commented:
try to unregister existing as above then copy and then again register new

MAHESH
0
ReedsAuthor Commented:
I am sorry, but I am new to al this. Should I give this in the coammnline as well before copying
0
ReedsAuthor Commented:
I tried it, but still the new dll is not being created
0
ReedsAuthor Commented:
regsvr32 /u SAT10_UE.dll

Copy SAT10_UE.dll SAT10_BarCodeUE.dll

regsvr32 /u SAT10_BarCodeUE.dll


This is what I did
0
ReedsAuthor Commented:
I get this warning after compilation:

SAT10_UE : warning PRJ0029 : The 'Outputs' property for the project-level custom build step is not set. The custom build step will be skipped.


What do I set the output property as?
0
mahesh1402Commented:
thats because you have not specified any output.. where you have to spcify name of output file.

0
mahesh1402Commented:
http://msdn2.microsoft.com/en-us/library/hefydhhy(VS.80).aspx <== refer this


e.g

.\$(InputName).xxx


MAHESH
0
mahesh1402Commented:
in custom build section below 'Commands'  input box there is Output input box specify output name there as said above.

Refer above link for more.

MAHESH
0
AndyAinscowFreelance programmer / ConsultantCommented:
In my opinion you are looking in the wrong place.   (This DOES work, I have used it for years)
Post build in the project properties.
copy SAT10_UE.dll SAT10_BarCodeUE.dll


you may also need to put the path if the path is different
0
mahesh1402Commented:
you may use $(ProjectPath) $(ProjectName) etc macros for path name etc purpose.

Get this macros here
http://msdn2.microsoft.com/en-us/library/c02as0cs(VS.80).aspx

MAHESH

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyAinscowFreelance programmer / ConsultantCommented:
This may also be of use.
Link tab of the dll
Output file name - enter SAT10_BarCodeUE.dll

by default the output file name is the name of the project.  You can, however, provide your own name here - so no need for your copy command (as you are just effectively renaming it in what you posted as your copy command)
0
ReedsAuthor Commented:
thanks for all you help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.