Solved

command exited with code 1

Posted on 2011-03-22
2
4,596 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
[X]
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
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
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…

691 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