Name: JMidalo Date: March 29, 2008 at 00:19:10 Pacific Subject: Search for folder and copy contents OS: VISTA CPU/Ram: N/A Model/Manufacturer: N/A
Comment:
I'm setting up a batch file for my work and I need some help. I want to find a specific folder on any of the drives on the computer, copy its contents, find another specific folder and paste the contents into that folder.
You can get a dos prompt in Vista: just run cmd like on nt, 2K and xp. It is about the only good thing I can say about vista - there is a command line interface to help you when you can't find stuff by clicking.
for /r %1 in (example) do xcopy /E %1 C:\Folder1\Folder2\
I you want to use it in a batch file, you have to use %%1 instead of %1 You will probably need to tweak xcopy options to do what you want it to do (XCOPY /?)
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE