PC Review


Reply
Thread Tools Rate Thread

how to simplify my command for backup purpose

 
 
thinktwice
Guest
Posts: n/a
 
      8th May 2008
src
|_____folder1
|_____folder2
|_____folder3
|
 
Reply With Quote
 
 
 
 
Tom Lavedas
Guest
Posts: n/a
 
      8th May 2008
On May 8, 7:41 am, thinktwice <memorial...@gmail.com> wrote:
> src
> |_____folder1
> |_____folder2
> |_____folder3
> |
> .
> ._____*.dll
> ._____*.exe
> ._____*.otherformat
>
> i need copy to the target, the struct of the target folder should be
> like this:
> target
> |______folder1
> |______folder2
> |______folder3
> |______*.dll
> |______*.exe
>
> everything under folder1,folder2,folder3 should be copied
>
> right now i use following command:
> <<<<<<<<<<<<<<<<<
> for /D %%i in (%SourceDir%\*.*) do @(
> mkdir %TargetDir%\%%~ni
> xcopy %%i %TargetDir%\%%~ni /e /s /y /i /q )
>
> xcopy %SourceDir%\*.dll %TargetDir% /y /i /q
> xcopy %SourceDir%\*.exe %TargetDir% /y /i /q
>
>
>
> i could copy them seperately, but i'm sure there must be some better
> way to achieve this, can anyone teach how?


Please use limited cross-posting, rather than multi-posting.

It's easier on readers/responders.

Find an answer in alt.msdos.batch.

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simplify Command Button Procedure =?Utf-8?B?S2Vubnk=?= Microsoft Excel Misc 2 14th Oct 2007 09:13 PM
Simplify, simplify... Fred Boer Microsoft Access Form Coding 18 13th Apr 2005 01:28 AM
Exporting queries for modification purpose and or backup =?Utf-8?B?Q2xhdWRpbyBDdXJ0aQ==?= Microsoft Access External Data 1 21st Feb 2005 10:30 PM
Purpose of whole registry backup =?Utf-8?B?ZnJhbmtjdmM=?= Microsoft Windows 2000 Registry Archive 4 1st Nov 2004 02:35 PM
Copy for Backup Purpose. Michael168 Microsoft Excel Programming 3 1st Jan 2004 05:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:48 AM.