Solved

command exited with code 1

Posted on 2011-03-22
2
4,558 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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!
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

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