Welcome, Guest. Please login or register for free.
Did you miss your activation email?
Wednesday 09 July 08 09:53 BST (UK)
Welcome Home Help Shop Search Calendar Login Register
Search Images 

Online
 
  First Name(s)

Last Name

 
News: Ad:

+  RootsChat.Com
|-+  General
| |-+  The Common Room
| | |-+  Technical Help (Moderator: Ticker)
| | | |-+  DOS COPY
« previous next »
Pages: [1] Print
Author Topic: DOS COPY  (Read 109 times)
MalcolmBull
RootsChat Member
***
Offline Offline

Posts: 227



DOS COPY
« on: Monday 05 May 08 16:17 BST (UK) »

I'm using VISTA.  Can someone please remind me of the correct format of a DOS command to copy all folders and files from one place to another?

The command I am trying is something like

COPY C:\DIR1\*.* C:\DIR2\VERSION1

[where DIR1 is the source folder and VERSION1 is the destination folder] but it either fails or only copies the files from DIR1 but not the folders and their contents.  I tried putting the option

/S

at the end but that didn't work either.  I came across something called ROBOCOPY but that is overwhelming when it tells you what it can do, but I still can't do what I want.  I have to use DOS because I'm calling the process from inside another program.
Logged

Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball

Local history interests: Halifax & Calderdale in West Yorkshire
downside
RootsChat Aristocrat
******
Offline Offline

Posts: 2322


Make my day


WWW
Re: DOS COPY
« Reply #1 on: Monday 05 May 08 17:25 BST (UK) »

It probably better to use xcopy.


xcopy c:\dir_1  /s  c:\dir_2\version_1

Have a look at the options for xcopy:

xcopy  /?
Logged

Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
Falkyrn
RootsChat Marquessate
********
Online Online

Posts: 4430


Nemo Me Impune Lacessit


Re: DOS COPY
« Reply #2 on: Monday 05 May 08 18:01 BST (UK) »

Quote
but it either fails or only copies the files from DIR1 but not the folders and their contents.  I tried putting the option

Copy only ever copied the files which were not contained in other directories or folders and I would agree that Xcopy is the tool you want to use as its functions copies not only the files but the directory structure as well.

Have a look at http://commandwindows.com/xcopy.htm
Logged

~RJ Paton~
Searching for: PATTON: GOURLAY: DEWAR : MACLELLAN : STEWART, FERGUSON : WIGGINS, FLUKE, POGUE (POLLOCK).

Cuimhnich air na daoine o'n d'thainig thu
MalcolmBull
RootsChat Member
***
Offline Offline

Posts: 227



Re: DOS COPY
« Reply #3 on: Tuesday 06 May 08 08:48 BST (UK) »

Thanks to both of you.

Malcolm
Logged

Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball

Local history interests: Halifax & Calderdale in West Yorkshire
Pages: [1] Print 
« previous next »


[Copyright] [Free RootsChat Webspace] [Your Surname Interests] [Shrink Link] [About Us] [Terms of Use]
All Census Lookups are Crown Copyright, National Archives for academic and non-commercial research purposes only
RootsChat.com cannot be held responsible directly or indirectly for the messages or content posted by others. Inline images in messages are the copyright of the respective linked sites.
RootsChat.com, Europa House, Bury, Lancashire, BL9 5BT
17.093:21