Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

How to avoid manual copying?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 26 May 2005 19:16 GMT
I have an assembly ComnAssembly.dll which is used by 3 applications.
In other words there are 3 solutions which include ComnAssembly.dll
project.

In order to avoid manual copying I use post-build event command line
inComnAssembly.dll project. The problem is that I can copy ComnAssembly.dll
only to one application location only, for example:

copy ComnAssembly.dll C:\FirstSolution\bin\Debug\ComnAssembly.dll

So my question is: How can I copy ComnAssembly.dll to multiple locations?
For example to:
C:\FirstSolution\bin\Debug\ComnAssembly.dll
C:\SecondSolution\bin\Debug\ComnAssembly.dll
C:\ThirdSolution\bin\Debug\ComnAssembly.dll

Thanks
ismailp - 27 May 2005 01:58 GMT
Use a batch (.bat) file! Like following:

copy commassembly.dll C:\firstsolution\bin\debug
copy commassembly.dll c:\secondsolution\bin\debug

Ismail
Tamas Demjen - 31 May 2005 19:12 GMT
> So my question is: How can I copy ComnAssembly.dll to multiple locations?
> For example to:
> C:\FirstSolution\bin\Debug\ComnAssembly.dll
> C:\SecondSolution\bin\Debug\ComnAssembly.dll
> C:\ThirdSolution\bin\Debug\ComnAssembly.dll

I would set the Debugging -> Working Directory option to the path where
the DLL is located. That way you don't have to copy the DLL, the IDE
will find it. Just delete the multiple copies of the DLL from the Debug
directories.

If you need to run the app from outside of the IDE, add the directory to
the system path.

Tom

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.