X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <1739604768.20121227175346@mtu-net.ru> References: <1739604768 DOT 20121227175346 AT mtu-net DOT ru> Date: Tue, 15 Jan 2013 18:05:23 +0530 Message-ID: Subject: Re: unable to copy folder contents. showing error "cannot stat. no such file directory" From: Divakar K To: Andrey Repin Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Thanks Andrey Repin. but if there is folder in the "source" path, it is not copying. Thanks & Regards, Divakar On Thu, Dec 27, 2012 at 7:23 PM, Andrey Repin wrote: > Greetings, Divakar K! > >> can someone please help me to copy only the folder contents? > > copy /Y /Z D:\ostore_7.4_int_bld\package\ostore\* \\rdlserv\cdimage\ObjectStore\ostore\7.4.0\winnt_vc100\20121226\Win_32_VS_2010 > > Don't mix native windows environment and Cygwin tools without a good clue of > what you're doing. > >> in our script we used asterisk to copy the folder contents. but it is >> failing with the error. > > H:\>>cp -rf D:\ostore_7.4_int_bld\package\ostore\* >> \\rdlserv\cdimage\ObjectStore\ostore\7.4.0\winnt_vc100\20121226\Win_32_VS_2010 >> cp: cannot stat `D:\\ostore_7.4_int_bld\\package\\ostore\\*': No such >> file or directory > >> if i omit asterisk then it is copying but with folder name which we dont need. > > H:\>>cp -rf D:\ostore_7.4_int_bld\package\ostore\ \\rdlserv\cdimage\ObjectStore\o >> store\7.4.0\winnt_vc100\20121226\Win_32_VS_2010 > >> Thanks & Regards, >> Divakar > >> -- >> Problem reports: http://cygwin.com/problems.html >> FAQ: http://cygwin.com/faq/ >> Documentation: http://cygwin.com/docs.html >> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > > -- > WBR, > Andrey Repin (anrdaemon AT freemail DOT ru) 27.12.2012, <17:51> > > Sorry for my terrible english... > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple