Help with copying subdirectory structure of a folder to another location::

  • Hello all,

    I was wondering if there is way of copying the entire substructure of a directory to another directory. How can I do this without copying the actual files in Windows of course.

    I know this is can be done in Unix easily, but, you know how it is...

    🙂

    John Esraelo

    Cheers,
    John Esraelo

  • I do not think you can do it in Windows. Read the last paragraph in this article.

    http://www.microsoft.com/technet/scriptcenter/guide/sas_scr_klwf.mspx?mfr=true

  • You could script this, but it would require some recursion to dig through all the subs, copy them, and ignore the files.

  • command prompt> xcopy foldera folderb /T /E

    command prompt> xcopy /? --- for more options

  • Thank Vivien. I forgot this command.

  • YOU GUYS rock...

    eventhough I was looking for the copy command options, but, I think I will be happy with... this is great.

    I have not worked with VFP until end of the last year and this year and I have found out that xcopy is damaging vfp files during the copy process over the wan, but not the copy command.

    anyway, I am very glad this option is available under the xcopy command..

    thank you again...

    good times...

    John Esraelo

    Cheers,
    John Esraelo

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply