Using xcopy to copy files from several directories to one directory?

As DandDI said, you don't need xcopy. For statement helps much. However, you don't need to state process outcome of dir command as well, this command helps better.

As DandDI said, you don't need xcopy. For statement helps much. However, you don't need to state process outcome of dir command as well, this command helps better for /R c:\source %f in (*.

Xml) do copy "%f" x:\destination\ By the way, when you use it from a batch file, you need to add spare % in front of variable %f hence your command line should be; for /R c:\source %%f in (*. Xml) do copy %%f x:\destination\ when you use it within a batch Should surround %f with double quotes otherwise it will fail copying file names with spaces.

Is the xcopy solution possible - I found the way to copy files and folders but I would like to grab just the files – Michal Nov 26 at 1:43.

You don't need xcopy for that. You can get a listing of all the files you want and perform the copy that way. For example in windows xp command prompt: for /f "delims==" %k in ('dir c:\source\*.

Xml /s /b') do copy "%k" x:\destination\ The /s goes into all subdirectories and the /b lists only the files name and path. Each file inturn is assigned to the %k variable, then the copy command copies the file to the destination. The only trick is making sure the destination is not part of the source.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions