Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a directory "Original" with multiple directories inside of it. Each of these directories have a .pmd that I need to copy to another directory "Print". I want to know how I can copy from the multiple directories to the "Print" directory all at once.

If you are running "pure" DOS XCopy should work. Windows NT and later only emulate DOS an do not have the XCopy command.

The only problem is that I can't get the files inside the directories to copy over with out copying the directory as well.
instead of directory/file.pmd I just want it to copy file.pmd

As an example when I use this:
xcopy *.pmd g:\tkas\tkas106_Iss3_4\printNothing copies but when I use this:
xcopy *.pmd g:\tkas\tkas106_Iss3_4\print /sIt copies the subdirectories with the files inside of them. Like so:
G:aber\aber.pmd
G:applegate\applegate.pmd
G:awards\awards.pmd
G:council\council.pmd
G:cover\cover106b.pmd
G:davidson\davidson.pmd
G:distler\distler.pmd
G:dudley\dudley.pmd
G:engel1\engel.PMD
G:engel2\engel2.pmd
G:everhart\everhart.pmd
G:foster\foster.pmd
G:goeckler\goeckler.pmd
G:rivers\rivers.pmd
G:shimada\shimada.pmd
G:skelton\skelton.pmd
G:student\awards.pmd
G:winter\winter.pmdAll I want is the files to be copied over

About my previous post, sorry I omitted to say you must embed the statement into a batch script. So save the following
@Echo Off
For /R %1 %%I in (*.pmd) Do Copy "%%I" %2If you saved as PCopy.bat, then type
PCopy Source_Dir Destination_Dir
and the trick is done.

hwood You will find XCOPY in the \Windows\System32 Folder! It is not becouse Windows XP uses an 'emulated' DOS that it cannot use many DOS commands, it is becouse Microsoft did not include the files needed! Since MS-DOS 5.0 MS has been removing commands they did not feel were of use any more. And later updates such as "Supplimental Files" & "Olddos" have had to be providded to prove them wrong! So far Microsoft have resested all requests to do so again, since they wish to Kill DOS once and for all. As long as sites such as Computing.Net, PowerLoad and many others exsist they will not do so.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |