|
-
Feb 7th, 2007, 07:29 AM
#1
Thread Starter
Fanatic Member
[2.0] Build Events [RESOLVED]
Hi all trying to use the Build Events that are on the property page of the project I wish to copy a Directory so it's placed within the release folder when i compile.
I write the following post build.
Code:
copy"$(ProjectDir) Reports" "$(TargetDir)"
It works and my code complies but i get the following error message any one now why?
Error 1 The command "copy"C:\C# Work\ReportTest\ReportTest\ Reports" "C:\C# Work\ReportTest\ReportTest\bin\Release\"" exited with code 123. ReportTest
Thanks!!!
Last edited by Bombdrop; Feb 13th, 2007 at 08:05 AM.
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
-
Feb 8th, 2007, 12:41 AM
#2
Fanatic Member
Re: [2.0] Build Events
Put a @ symbol before the variable
Code:
copy"$(@ProjectDir) Reports" "$(@TargetDir)"
-
Feb 8th, 2007, 03:51 AM
#3
Thread Starter
Fanatic Member
Re: [2.0] Build Events
Thanks for the reply but i now get the error
Error 4 The command "copy" Reports" """ exited with code 9009. ReportTest
after taking your advice
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
-
Feb 13th, 2007, 08:05 AM
#4
Thread Starter
Fanatic Member
Re: [2.0] Build Events
got it to work used the following in the post build event
Code:
xcopy "$(ProjectDir)Reports" "$(TargetDir)Reports" /i/y
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|