Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

command exited with code 1

Posted on 2011-03-22
2
4,569 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
ID: 35186992
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
ID: 35187887
Its really fine Thanks Alot

Its worked for me
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

809 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