Reply to Message Icon Go to Main Page Icon

Copy whole dir and subdirs

Original Message
Name: nmv
Date: April 16, 2007 at 20:24:59 Pacific
Subject: Copy whole dir and subdirs
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...


Report Offensive Message For Removal


Response Number 1
Name: orbital
Date: April 16, 2007 at 22:15:49 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

DOS 6.0 unlikely:

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

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


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


Report Offensive Follow Up For Removal

Response Number 2
Name: DAVEINCAPS
Date: April 16, 2007 at 22:56:10 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

I think xxcopy will do that.

Http://www.xxcopy.com


Report Offensive Follow Up For Removal

Response Number 3
Name: orbital
Date: April 17, 2007 at 08:01:59 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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

DOS6.0 what is the real version ???


Report Offensive Follow Up For Removal

Response Number 4
Name: xwb
Date: April 17, 2007 at 12:43:24 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

Why not just use xcopy?

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


Report Offensive Follow Up For Removal

Response Number 5
Name: nmv
Date: April 17, 2007 at 14:59:28 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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.



Report Offensive Follow Up For Removal


Response Number 6
Name: DAVEINCAPS
Date: April 17, 2007 at 16:21:05 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 7
Name: emuarcade
Date: April 17, 2007 at 20:05:55 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 8
Name: DAVEINCAPS
Date: April 17, 2007 at 20:25:31 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 9
Name: orbital
Date: April 17, 2007 at 22:52:17 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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!


Report Offensive Follow Up For Removal

Response Number 10
Name: emuarcade
Date: April 20, 2007 at 09:32:28 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 11
Name: DAVEINCAPS
Date: April 20, 2007 at 11:55:19 Pacific
Subject: Copy whole dir and subdirs
Reply: (edit)

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.


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Copy whole dir and subdirs

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software