Microsoft
Software
Hardware
Network
Question : Batch file to copy folders with a certain name
Hi,
I am a programmer, but the for loops in DOS really confuse me. I've been struggling for the past 2 hours to figure this out. We have certain folders on one drive named "_DAILY". I would like to copy each folder named this to an external hard drive (using the same folder structure).
For instance take the output of this: dir /b /s D:\*_DAILY
and then for each filename do:
robocopy %copyDirectory% %destinationDirectory% /S
Thanks,
Jamie
Answer : Batch file to copy folders with a certain name
Give this a try, see if it gives you some ideas:
@echo off
set DestinationDirectory=X:\
for /F "tokens=*" %%A in ('dir /b /s "c:\*_daily"') do (
robocopy "%%A" %DestinationDirectory%" /S
)
~bp
Random Solutions
create vlans on GNS3 switch
Syntax in MS ACCESS SWITCH() when coulumn is NULL
Outlook 2003 - How Do I Set MS Exchange Server...
How do I work out transfer time?
Visio 2010 Online Training
Server 2008 R2 Backup account permissions
tuples in sql server
This is strange in dbml designer Column name and Enttiy Name is different.
1024 character limit in query grid
I implemented a Java (J2SE) application. The client wants the program to look like as .NET gui. Are there libraries for this need in Java?