Computing.Net > Forums > Disk Operating System > Copy whole dir and subdirs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copy whole dir and subdirs

Reply to Message Icon

Name: nmv
Date: April 16, 2007 at 20:24:59 Pacific
OS: DOS 6.0
CPU/Ram: Duron 800
Comment:

Is there a way to copy a whole directory, files and subdirectories excluding a particular filename extension?

I want to copy all the dirs,files and subsdirs, but omit all files with .WRK extension. I am starting to think that this is easier to do with Linux and bash script...



Sponsored Link
Ads by Google

Response Number 1
Name: orbital
Date: April 16, 2007 at 22:15:49 Pacific
Reply:

DOS 6.0 unlikely:

.WRK is Windows Software Extension........

http://www.fileinfo.net/extension/wrk


http://ww.computing.net/dos/wwwboar...


0

Response Number 2
Name: DAVEINCAPS
Date: April 16, 2007 at 22:56:10 Pacific
Reply:

I think xxcopy will do that.

Http://www.xxcopy.com


0

Response Number 3
Name: orbital
Date: April 17, 2007 at 08:01:59 Pacific
Reply:

The 16bit version of XXCOPY will not work under NT O/Ses.........

DOS6.0 what is the real version ???


0

Response Number 4
Name: xwb
Date: April 17, 2007 at 12:43:24 Pacific
Reply:

Why not just use xcopy?

xcopy src dst /s/v/c/EXCLUDE:.wrk


0

Response Number 5
Name: nmv
Date: April 17, 2007 at 14:59:28 Pacific
Reply:

Thanks for all your replies.

I need Long File Name support and LFNDOS and DOSLFN are pretty flakey.

I tried xxcopy, which works but is terribly slow and has no Long File Name support. I have also tried xcopy using both DOSLFN and LFNDOS.

I am having the best results using LCOPY from LFNTOOLS (lfntools.sourceforge.net - GPL license) because it supports long filenames. It is also 20x faster than xxcopy. My only problem now is omitting certain file extensions with the copy- which is a big task in DOS.

To get this working, I think that I would have to dump a directory and file listing into a file then parse it in and check for a .WRK extension. This is A LOT of work in DOS for something that is simple, so I think I'll just drop it and do it with a Linux bash script.

DOS is v 6.22 BTW.

Thanks for all the help.



0

Related Posts

See More



Response Number 6
Name: DAVEINCAPS
Date: April 17, 2007 at 16:21:05 Pacific
Reply:

I don't see how you'll be able to use any utility to copy long file names since you're doing it from 6.22.


0

Response Number 7
Name: emuarcade
Date: April 17, 2007 at 20:05:55 Pacific
Reply:

You can access NTFS drives with a program
called NTFS4DOS. You can download it for free. The program makes a bootdisk.
You can boot with any DOS disc and just
run the file NTFS4DOS.exe file. You then
have your NTFS drives.

Xfactor


0

Response Number 8
Name: DAVEINCAPS
Date: April 17, 2007 at 20:25:31 Pacific
Reply:

Maybe I'm missing something but I think we're talking about dos 6.22 (which has no LFN support) and not an NTFS OS.


0

Response Number 9
Name: orbital
Date: April 17, 2007 at 22:52:17 Pacific
Reply:

YEP, yet again trying to access NT O/Ses with a **-DOS Boot Disk.

Absolutely nothing to do with MS-DOS 6.22 par-se, a misguided OP!


0

Response Number 10
Name: emuarcade
Date: April 20, 2007 at 09:32:28 Pacific
Reply:

NTFS4dos will read LFN. and won't rename the file.
It does such a good job that I Defrag
windows XP, Xp64bit 3.11, fat adn fat32 drives.
they boot just fine.
It can be done,


Xfactor


0

Response Number 11
Name: DAVEINCAPS
Date: April 20, 2007 at 11:55:19 Pacific
Reply:

It's been awhile since I've used NTFS4DOS but as I recall, on the menu that first comes up you can choose to defrag. That defrag utility does preserve LFN. However its COPY command is a regular win 95 command and doesn't keep the LFN. Also I had problems with a simple COPY *.* . It would copy some but rarely all of the files in a directory. The rest I had to copy one at a time.

But my point is, since dos 6.22 doesn't create long file names there no reason to look for a copying utility that preserves LFN, nor will you find any that will work within dos 6.22.

Now maybe the poster is using another OS but for some reason wants to use dos 6.22 to copy the files. If that's the case he should have said so and maybe we could have provided better info.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Copy whole dir and subdirs

?-How to Copy Dir and all Sub-Dirs www.computing.net/answers/dos/how-to-copy-dir-and-all-subdirs/844.html

Copy Windows dir to new drive www.computing.net/answers/dos/copy-windows-dir-to-new-drive/7920.html

copy subdirectories? www.computing.net/answers/dos/copy-subdirectories/9302.html