Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

DOS command.....?

I need to copy a software program from one computer to another or to disc/cd-rom, because I don't have the installation disc and due to virus corruption, it doesn't work properly anymore. When I use the DOS command: "copy C:\*.* A:\*.* " , it will only copy files in the current directory, none of the sub-directories and their files.

What should I use in place of the "*.*" so that it copies the entire program (files, directories, sub-directories, etc.) ?

Or, what other DOS command is more appropriate for this operation?

******Please, only those with REAL knowledge of DOS and IT respond. This is a serious question and I need serious, educated answers!*****

Update:

Thank you for the REAL answers; I asked this question before in another format and all I got was junk.

By the way, I had bought two identical computers and one has never had the internet run on it, so the program files are virus free on that one. Thanks!!!

5 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer
  • 1 decade ago

    Yes, the /s switch will copy subdirectory structure. Using

    "xcopy [disk:/path] [Newdisk:/] /s/e"

    as your command will copy all directories, empty or not, in the path directory over to the new media. One other switch that you may wish to append is the '/v' for verify. It double checks that the copied buffers are identical to the files as they are written. Remember that any contamination will still exist in the new copies and that will likely reinfect the new system unless you have a way to remove the virus. Good luck.

    Source(s): The twisted mind of me.
  • 1 decade ago

    Copying the files in NOT the only thing an installer does. It may make registry keys, set up ODBC connections, change file system permissions, etc.

    If you really have your heart set on this, I suggest using WinZip or another archiving tool. They all have an option th maintain folder structure. By this I mean you can ZIP a folder with multiple folders in it, and the structure will be maintained.

    Please be advised that I have almost NEVER seen this work.

  • 1 decade ago

    try copy /s or xcopy /s

  • How do you think about the answers? You can sign in to vote the answer.
  • 1 decade ago

    another one is diskcopy c:\ a:\

Still have questions? Get your answers by asking now.