Discussion Locked

Dos

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I'm not to familiar w/dos commands.But I'm trying to do a simple copy command as follows: copy c:\5000(=folder name)\*.* \\severname\5000(=folder name)
This is a copy from a client(win98) across the network to a winnt4.0 server.It almost works, it copies the files but it does not copy the folders within the directory of the 5000 folder..Any help would be appreciated.Thank's in advance.....

7 replies

by bradq

Hi. I'm not sure that I know what you are trying to do but if you want to copy all the subfolders within a directory, I believe you need to use "xcopy" instead of "copy".

ex: xcopy c:\5000(=folder name)\*.* \\severname\5000(=folder name)

by searogue

HI, if the above suggestion doesn't work, try the following.
be in the dir c:\5000 on the NT machine, then type copy \\machine_name\c:\5000\*.*
this should accomplish what you are wanting to copy to your NT machine, if it doesn't work this way, try it from being on the Win98 machine & just reverse it.
IE: be on the Win98 machine in the c:\5000 dir & type copy *.* \\machine_name\c:\5000\*.*

HTH,

Best Regards,
Tony

by bigduck

The first answer is almost correct. You do need to use XCOPY in DOS but you need to include a switch to tell XCOPY to include subdirectories. The /S switch will copy subdirectories and contents. The /E switch will also include empty subdirectories. ex: xcopy c:\5000\*.* \\severname\5000 /S /E
The /E switch can be used without the /S and achive the same results.

This discussion is closed to new replies.