Moving files to another HD, recursing the directory tree...

  • Thread starter Thread starter Bruce
  • Start date Start date
B

Bruce

Is there a way to move files, using wild cards, from one hard drive to
another, keeping the same directory structure.

I have manually been doing an xcopy and then deleting the files by hand.
However, this is very tedious, anbd not sure fire with the correct files
(since I am at the command prompt, which does not ness see "all" of the
files.)

Thanks
Bruce
 
G'Day Bruce!

Is there any reason why you are not using Windows
Explorer?

If you have a Folder you wish to copy/move, Point Click-and-hold
and drag it to the new location (Folder or Drive Root) and let
go.

That folder, its contents, including all its subfolders and THEIR
contents will be copied/moved.

NB
Same HDD Different HDD
Move DragDrop CTRL/DragDrop
Copy CTRL/DragDrop DragDrop
--
Regards,
Pat Garard
Australia

______________________________________
 
I am trying to really MOVE files. XCOPY is what I have used in the past. I
have found, even if I use the /H /S (I am not interested in empty subs, or
saving attributes), if I do a search with explorer, windows will usually
fine a few more files (I am dealling with several thousands of files.) I
would HOPE that windows would have something that has been with DOS since
atleast dos 3.1
I have been playing with DOS since 1.1 (Old timer....)



I would LIKE to use Windows....

Thanks
Bruce
 
This would work if I wanted all files in the subdirectory. But I need to
filter with wild cards.... And keep the directory structure. I need to move
several thousand files

Any ideas?

Thanks
Bruce
 
Ahhhhh, DOS 1.1. I remember those days. :-)

"Dir /a" gives an accurate view of a directory. Explorer name space
extensions don't kick in. If you're seeing a difference between "dir /a" and
explorer, I'd trust "dir /a". For a prime example use explorer to navigate
to your temp internet directory to see what explorer purports to have. Then
use command prompt. What you see in command prompt is the actual real
structure. Name space extensions kick in the temp internet directory and
what you see is a highly massage view of the data that has little
resemblance to the actual underlying structure.

Where "dir /a /s" and xcopy have issues is when recursing a hidden
subdirectory (play with the internet temp directory for specific examples).
Recursion through those tends to break down a bit, but that's always been
the case.

Of course there *is* windows scripting.......
http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169

--
Walter Clayton - MS MVP(WinXP)
Associate Expert
http://www.microsoft.com/windowsxp/expertzone
Any technology distinguishable from magic is insufficiently advanced.
http://www.dts-l.org
 
Yeah, I started with CPM (most people will probably way "what is CPM...) and
DOS 1.1. I even remember Windows 1.x (yes there was Windows before 3.1!

I just have LOTS of files to move and I am running into issues with XP and
DOS agreeing what is on the system. And to throw into the mix, Win XP when
you do a search finds all files in the zip files as well. I have not figured
out how to exclude it searching inside for the zip and other archives...
Did not have the same issues with 2K or ME....
 
Sorry Bruce - unless you Move everything, then
selectively delete what you don't want using VB
or vbScript.
I remember CPM - and MNET - One 'multi-
user' version of CPM would fill the disk and
continue writing to 'virtual blocks' that fell off
the end!!
--
Regards,
Pat Garard
Australia

______________________________________
 
Bruce said:
Is there a way to move files, using wild cards, from one hard drive to
another, keeping the same directory structure.

Hi

Take a look at Robocopy.exe or XXCOPY.exe. They are pretty good
copy/move/mirror utilities.


Robocopy.exe is in the free Windows Server 2003 Resource Kit:

http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

(The kit will install on WinXP or later)


XXCOPY: they have a freeware version for personal (non-commercial) use, and a
shareware version in other cases.

http://www.xxcopy.com/index.html

Switch help/listing
http://www.xxcopy.com/xxcopy27.htm

A Feature Comparison: XXCOPY vs ROBOCOPY
http://www.xxcopy.com/xxcopy30.htm
 
Bruce said:
And to throw into the mix, Win XP when
you do a search finds all files in the zip files as well. I have not figured
out how to exclude it searching inside for the zip and other archives...
Did not have the same issues with 2K or ME....

Hi

Stop Search from scanning ZIP files:

regsvr32 /u zipfldr.dll
regsvr32 /u cabview.dll


Enable it again later if you want this way:

regsvr32 zipfldr.dll
regsvr32 cabview.dll
 
Back
Top