?
Solved

command exited with code 1

Posted on 2011-03-22
2
Medium Priority
?
4,621 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 2000 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

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

750 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