Solved

command exited with code 1

Posted on 2011-03-22
2
4,522 Views
Last Modified: 2012-05-11
Hi ,

In my solution  one project contains command in post build events as
copy $(TargetPath) $(SolutionDir)SharedResources\$(TargetFileName)

but when i try to build its giving error "Error      42      The command "copy C:\Documents and Settings\spadmin\My Documents\LathaCBS\CBR\CBS.Wannabillboard.WebParts\bin\debug\CBS.Wannabillboard.WebParts.dll C:\Documents and Settings\spadmin\My Documents\LathaCBS\CBR\CBS.Wannabillboard.WebParts\GAC\CBS.Wannabillboard.WebParts.dll" exited with code 1.      CBS.Wannabillboard.WebParts
"

Please help me..
0
Comment
Question by:LathaLiquidHub
2 Comments
 
LVL 11

Accepted Solution

by:
Kusala Wijayasena earned 500 total points
Comment Utility
It seems to be there are white spaces in your folders names (e.g: "Documents and Settings", "My Documents" ..... etc)

So change your post build command as follows:

copy "$(TargetPath)" "$(SolutionDir)SharedResources\$(TargetFileName)"

Open in new window


-Kusala
0
 

Author Closing Comment

by:LathaLiquidHub
Comment Utility
Its really fine Thanks Alot

Its worked for me
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

771 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

11 Experts available now in Live!

Get 1:1 Help Now